Changeset View
Changeset View
Standalone View
Standalone View
www/gitlab/files/gitlab.in
Show All 31 Lines | |||||
rcvar=gitlab_enable | rcvar=gitlab_enable | ||||
extra_commands=status | extra_commands=status | ||||
status_cmd="print_status" | status_cmd="print_status" | ||||
start_cmd="start_gitlab" | start_cmd="start_gitlab" | ||||
stop_cmd="stop_gitlab" | stop_cmd="stop_gitlab" | ||||
restart_cmd="restart_gitlab" | restart_cmd="restart_gitlab" | ||||
gitlab_enable=${gitlab_enable:-"NO"} | : ${gitlab_enable:="NO"} | ||||
gitlab_authBackend=${gitlab_authBackend:-"http://127.0.0.1:8080"} | : ${gitlab_authBackend:="http://127.0.0.1:8080"} | ||||
: ${gitlab_workhorse_tcp:="NO"} | |||||
: ${gitlab_workhorse_addr:="127.0.0.1:8181"} | |||||
load_rc_config $name | load_rc_config $name | ||||
### Environment variables | ### Environment variables | ||||
RAILS_ENV="production" | RAILS_ENV="production" | ||||
# Script variable names should be lower-case not to conflict with | # Script variable names should be lower-case not to conflict with | ||||
# internal /bin/sh variables such as PATH, EDITOR or SHELL. | # internal /bin/sh variables such as PATH, EDITOR or SHELL. | ||||
app_user="git" | app_user="git" | ||||
app_root="/usr/local/www/gitlab" | app_root="/usr/local/www/gitlab" | ||||
pid_path="$app_root/tmp/pids" | pid_path="$app_root/tmp/pids" | ||||
socket_path="$app_root/tmp/sockets" | socket_path="$app_root/tmp/sockets" | ||||
rails_socket="$socket_path/gitlab.socket" | rails_socket="$socket_path/gitlab.socket" | ||||
web_server_pid_path="$pid_path/unicorn.pid" | web_server_pid_path="$pid_path/unicorn.pid" | ||||
sidekiq_pid_path="$pid_path/sidekiq.pid" | sidekiq_pid_path="$pid_path/sidekiq.pid" | ||||
mail_room_enabled=false | mail_room_enabled=false | ||||
mail_room_pid_path="$pid_path/mail_room.pid" | mail_room_pid_path="$pid_path/mail_room.pid" | ||||
gitlab_workhorse_dir=$(cd $app_root/../gitlab-workhorse && pwd) | gitlab_workhorse_dir=$(cd $app_root/../gitlab-workhorse && pwd) | ||||
gitlab_workhorse_pid_path="$pid_path/gitlab-workhorse.pid" | gitlab_workhorse_pid_path="$pid_path/gitlab-workhorse.pid" | ||||
gitlab_workhorse_options="-listenUmask 0 -listenNetwork unix -listenAddr $socket_path/gitlab-workhorse.socket -authBackend $gitlab_authBackend -authSocket $rails_socket -documentRoot $app_root/public" | if checkyesno gitlab_workhorse_tcp; then | ||||
gitlab_workhorse_listen="-listenNetwork tcp -listenAddr $gitlab_workhorse_addr" | |||||
else | |||||
gitlab_workhorse_listen="-listenNetwork unix -listenAddr $socket_path/gitlab-workhorse.socket" | |||||
fi | |||||
gitlab_workhorse_options="-listenUmask 0 $gitlab_workhorse_listen -authBackend $gitlab_authBackend -authSocket $rails_socket -documentRoot $app_root/public" | |||||
gitlab_workhorse_log="$app_root/log/gitlab-workhorse.log" | gitlab_workhorse_log="$app_root/log/gitlab-workhorse.log" | ||||
gitlab_pages_enabled=false | gitlab_pages_enabled=false | ||||
gitlab_pages_dir=$(cd $app_root/../gitlab-pages 2> /dev/null && pwd) | gitlab_pages_dir=$(cd $app_root/../gitlab-pages 2> /dev/null && pwd) | ||||
gitlab_pages_pid_path="$pid_path/gitlab-pages.pid" | gitlab_pages_pid_path="$pid_path/gitlab-pages.pid" | ||||
gitlab_pages_options="-pages-domain example.com -pages-root $app_root/shared/pages -listen-proxy 127.0.0.1:8090" | gitlab_pages_options="-pages-domain example.com -pages-root $app_root/shared/pages -listen-proxy 127.0.0.1:8090" | ||||
gitlab_pages_log="$app_root/log/gitlab-pages.log" | gitlab_pages_log="$app_root/log/gitlab-pages.log" | ||||
shell_path="/bin/bash" | shell_path="/bin/bash" | ||||
gitaly_enabled=true | gitaly_enabled=true | ||||
▲ Show 20 Lines • Show All 448 Lines • Show Last 20 Lines |