2013-12-09 08:05:50 -05:00
|
|
|
# Copy this lib/support/init.d/gitlab.default.example file to
|
|
|
|
# /etc/default/gitlab in order for it to apply to your system.
|
|
|
|
|
|
|
|
# RAILS_ENV defines the type of installation that is running.
|
|
|
|
# Normal values are "production", "test" and "development".
|
|
|
|
RAILS_ENV="production"
|
|
|
|
|
|
|
|
# app_user defines the user that GitLab is run as.
|
|
|
|
# The default is "git".
|
|
|
|
app_user="git"
|
|
|
|
|
2015-12-23 23:18:39 -05:00
|
|
|
# app_root defines the folder in which gitlab and its components are installed.
|
2013-12-09 08:05:50 -05:00
|
|
|
# The default is "/home/$app_user/gitlab"
|
|
|
|
app_root="/home/$app_user/gitlab"
|
2014-01-08 17:54:03 -05:00
|
|
|
|
2015-12-23 23:18:39 -05:00
|
|
|
# pid_path defines a folder in which the gitlab and its components place their pids.
|
2014-01-08 17:54:03 -05:00
|
|
|
# This variable is also used below to define the relevant pids for the gitlab components.
|
|
|
|
# The default is "$app_root/tmp/pids"
|
|
|
|
pid_path="$app_root/tmp/pids"
|
|
|
|
|
|
|
|
# socket_path defines the folder in which gitlab places the sockets
|
|
|
|
#The default is "$app_root/tmp/sockets"
|
|
|
|
socket_path="$app_root/tmp/sockets"
|
|
|
|
|
|
|
|
# web_server_pid_path defines the path in which to create the pid file fo the web_server
|
2020-05-15 14:07:52 -04:00
|
|
|
# The default is "$pid_path/puma.pid"
|
|
|
|
web_server_pid_path="$pid_path/puma.pid"
|
2014-01-08 17:54:03 -05:00
|
|
|
|
|
|
|
# sidekiq_pid_path defines the path in which to create the pid file for sidekiq
|
|
|
|
# The default is "$pid_path/sidekiq.pid"
|
|
|
|
sidekiq_pid_path="$pid_path/sidekiq.pid"
|
2015-02-03 20:36:51 -05:00
|
|
|
|
2016-01-21 07:36:55 -05:00
|
|
|
# The directory where the gitlab-workhorse binaries are. Usually
|
|
|
|
# /home/git/gitlab-workhorse .
|
|
|
|
gitlab_workhorse_dir=$(cd $app_root/../gitlab-workhorse && pwd)
|
2015-10-29 09:21:24 -04:00
|
|
|
gitlab_workhorse_pid_path="$pid_path/gitlab-workhorse.pid"
|
2016-02-09 09:50:42 -05:00
|
|
|
|
2015-10-29 09:21:24 -04:00
|
|
|
# The -listenXxx settings determine where gitlab-workhorse
|
2016-02-09 09:50:42 -05:00
|
|
|
# listens for connections from the web server. By default it listens to a
|
|
|
|
# socket. To listen on TCP connections (needed by Apache) change to:
|
|
|
|
# '-listenNetwork tcp -listenAddr 127.0.0.1:8181'
|
|
|
|
#
|
2021-05-19 08:10:33 -04:00
|
|
|
# The -authBackend setting tells gitlab-workhorse where it can reach the GitLab Rails application.
|
2016-02-09 09:50:42 -05:00
|
|
|
# For relative URL support change to:
|
|
|
|
# '-authBackend http://127.0.0.1/8080/gitlab'
|
|
|
|
# Read more in http://doc.gitlab.com/ce/install/relative_url.html
|
2015-12-15 10:24:04 -05:00
|
|
|
gitlab_workhorse_options="-listenUmask 0 -listenNetwork unix -listenAddr $socket_path/gitlab-workhorse.socket -authBackend http://127.0.0.1:8080 -authSocket $socket_path/gitlab.socket -documentRoot $app_root/public"
|
2015-10-29 09:21:24 -04:00
|
|
|
gitlab_workhorse_log="$app_root/log/gitlab-workhorse.log"
|
2015-08-31 09:30:15 -04:00
|
|
|
|
2016-02-21 16:06:44 -05:00
|
|
|
# The GitLab Pages Daemon needs either a separate IP address on which it will
|
|
|
|
# listen or use different ports than 80 or 443 that will be forwarded to GitLab
|
|
|
|
# Pages Daemon.
|
2016-02-20 16:29:40 -05:00
|
|
|
#
|
|
|
|
# To enable HTTP support for custom domains add the `-listen-http` directive
|
|
|
|
# in `gitlab_pages_options` below.
|
|
|
|
# The value of -listen-http must be set to `gitlab.yml > pages > external_http`
|
|
|
|
# as well. For example:
|
|
|
|
#
|
2017-03-08 11:45:59 -05:00
|
|
|
# -listen-http 1.1.1.1:80 -listen-http [2001::1]:80
|
2016-02-20 16:29:40 -05:00
|
|
|
#
|
|
|
|
# To enable HTTPS support for custom domains add the `-listen-https`,
|
|
|
|
# `-root-cert` and `-root-key` directives in `gitlab_pages_options` below.
|
|
|
|
# The value of -listen-https must be set to `gitlab.yml > pages > external_https`
|
|
|
|
# as well. For example:
|
|
|
|
#
|
2017-03-08 11:45:59 -05:00
|
|
|
# -listen-https 1.1.1.1:443 -listen-http [2001::1]:443 -root-cert /path/to/example.com.crt -root-key /path/to/example.com.key
|
2016-02-20 16:29:40 -05:00
|
|
|
#
|
|
|
|
# The -pages-domain must be specified the same as in `gitlab.yml > pages > host`.
|
2016-02-21 16:06:44 -05:00
|
|
|
# Set `gitlab_pages_enabled=true` if you want to enable the Pages feature.
|
|
|
|
gitlab_pages_enabled=false
|
2021-08-18 14:10:08 -04:00
|
|
|
gitlab_pages_options="-config $app_root/gitlab-pages/gitlab-pages.conf"
|
2016-02-20 16:29:40 -05:00
|
|
|
gitlab_pages_log="$app_root/log/gitlab-pages.log"
|
|
|
|
|
2015-08-19 16:58:07 -04:00
|
|
|
# mail_room_enabled specifies whether mail_room, which is used to process incoming email, is enabled.
|
|
|
|
# This is required for the Reply by email feature.
|
|
|
|
# The default is "false"
|
|
|
|
mail_room_enabled=false
|
|
|
|
|
|
|
|
# mail_room_pid_path defines the path in which to create the pid file for mail_room
|
|
|
|
# The default is "$pid_path/mail_room.pid"
|
|
|
|
mail_room_pid_path="$pid_path/mail_room.pid"
|
|
|
|
|
2015-05-04 04:46:16 -04:00
|
|
|
# shell_path defines the path of shell for "$app_user" in case you are using
|
|
|
|
# shell other than "bash"
|
2015-02-03 20:36:51 -05:00
|
|
|
# The default is "/bin/bash"
|
|
|
|
shell_path="/bin/bash"
|
2017-03-14 12:48:32 -04:00
|
|
|
|
|
|
|
# This variable controls whether the init script starts/stops Gitaly
|
2017-05-30 09:57:11 -04:00
|
|
|
gitaly_enabled=true
|
2017-05-26 10:30:45 -04:00
|
|
|
gitaly_dir=$(cd $app_root/../gitaly 2> /dev/null && pwd)
|
|
|
|
gitaly_pid_path="$pid_path/gitaly.pid"
|
2017-03-14 12:48:32 -04:00
|
|
|
gitaly_log="$app_root/log/gitaly.log"
|