summaryrefslogtreecommitdiff
path: root/www/gitlab/files/patch-config_puma.rb.example
diff options
context:
space:
mode:
authorMatthias Fechner <mfechner@FreeBSD.org>2024-04-12 13:22:39 +0300
committerMatthias Fechner <mfechner@FreeBSD.org>2024-04-21 13:57:57 +0300
commit24ea305bffad4315fcc95fe4006d42801ffc1f5d (patch)
treedb89645f41c98899b318203327570df44f589e1a /www/gitlab/files/patch-config_puma.rb.example
parentnet-p2p/c-lightning: upgrade from 24.02 to 24.02.2 (diff)
www/gitlab-ce: rename port to gitlab in preparation to add flavor support
Diffstat (limited to 'www/gitlab/files/patch-config_puma.rb.example')
-rw-r--r--www/gitlab/files/patch-config_puma.rb.example49
1 files changed, 49 insertions, 0 deletions
diff --git a/www/gitlab/files/patch-config_puma.rb.example b/www/gitlab/files/patch-config_puma.rb.example
new file mode 100644
index 000000000000..ca75ff90f250
--- /dev/null
+++ b/www/gitlab/files/patch-config_puma.rb.example
@@ -0,0 +1,49 @@
+--- config/puma.rb.example.orig 2023-10-20 08:41:39 UTC
++++ config/puma.rb.example
+@@ -5,11 +5,11 @@
+ # The default is "config.ru".
+ #
+ rackup 'config.ru'
+-pidfile '/home/git/gitlab/tmp/pids/puma.pid'
+-state_path '/home/git/gitlab/tmp/pids/puma.state'
++pidfile '%%PREFIX%%/www/gitlab-ce/tmp/pids/puma.pid'
++state_path '%%PREFIX%%/www/gitlab-ce/tmp/pids/puma.state'
+
+-stdout_redirect '/home/git/gitlab/log/puma.stdout.log',
+- '/home/git/gitlab/log/puma.stderr.log',
++stdout_redirect '%%PREFIX%%/www/gitlab-ce/log/puma.stdout.log',
++ '%%PREFIX%%/www/gitlab-ce/log/puma.stderr.log',
+ true
+
+ # Configure "min" to be the minimum number of threads to use to answer
+@@ -31,11 +31,11 @@ queue_requests false
+
+ # Bind the server to "url". "tcp://", "unix://" and "ssl://" are the only
+ # accepted protocols.
+-bind 'unix:///home/git/gitlab/tmp/sockets/gitlab.socket'
++bind 'unix://%%PREFIX%%/www/gitlab-ce/tmp/sockets/gitlab.socket'
+
+ workers 3
+
+-require_relative "/home/git/gitlab/lib/gitlab/cluster/lifecycle_events"
++require_relative "%%PREFIX%%/www/gitlab-ce/lib/gitlab/cluster/lifecycle_events"
+
+ on_restart do
+ # Signal application hooks that we're about to restart
+@@ -74,14 +74,14 @@ worker_timeout 60
+ wait_for_less_busy_worker ENV.fetch('PUMA_WAIT_FOR_LESS_BUSY_WORKER', 0.001).to_f
+
+ # Use json formatter
+-require_relative "/home/git/gitlab/lib/gitlab/puma_logging/json_formatter"
++require_relative "%%PREFIX%%/www/gitlab-ce/lib/gitlab/puma_logging/json_formatter"
+
+ json_formatter = Gitlab::PumaLogging::JSONFormatter.new
+ log_formatter do |str|
+ json_formatter.call(str)
+ end
+
+-require_relative "/home/git/gitlab/lib/gitlab/puma/error_handler"
++require_relative "%%PREFIX%%/www/gitlab-ce/lib/gitlab/puma/error_handler"
+
+ error_handler = Gitlab::Puma::ErrorHandler.new(ENV['RAILS_ENV'] == 'production')
+