gitlab.default.example 2.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
# 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"

12
# app_root defines the folder in which gitlab and its components are installed.
13 14
# The default is "/home/$app_user/gitlab"
app_root="/home/$app_user/gitlab"
15

16
# pid_path defines a folder in which the gitlab and its components place their pids.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
# 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
# The default is "$pid_path/unicorn.pid"
web_server_pid_path="$pid_path/unicorn.pid"

# 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"
32

33 34 35
# The directory where the gitlab-workhorse binaries are. Usually
# /home/git/gitlab-workhorse .
gitlab_workhorse_dir=$(cd $app_root/../gitlab-workhorse && pwd)
J
Jacob Vosmaer 已提交
36
gitlab_workhorse_pid_path="$pid_path/gitlab-workhorse.pid"
37

J
Jacob Vosmaer 已提交
38
# The -listenXxx settings determine where gitlab-workhorse
39 40 41 42 43 44 45 46
# 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'
#
# The -authBackend setting tells gitlab-workhorse where it can reach Unicorn.
# 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
47
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"
J
Jacob Vosmaer 已提交
48
gitlab_workhorse_log="$app_root/log/gitlab-workhorse.log"
49

D
Douwe Maan 已提交
50 51 52 53 54 55 56 57 58
# 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"

D
Drunkard Zhang 已提交
59 60
# shell_path defines the path of shell for "$app_user" in case you are using
# shell other than "bash"
61 62
# The default is "/bin/bash"
shell_path="/bin/bash"