Move Unicorn unix socket out of /tmp
This commit is contained in:
parent
a8768ffb9d
commit
6aabf1157a
|
@ -13,7 +13,7 @@ timeout 30
|
||||||
|
|
||||||
#listen 8080 # listen to port 8080 on all TCP interfaces
|
#listen 8080 # listen to port 8080 on all TCP interfaces
|
||||||
#listen "127.0.0.1:8080" # listen to port 8080 on the loopback interface
|
#listen "127.0.0.1:8080" # listen to port 8080 on the loopback interface
|
||||||
listen "/tmp/gitlab.socket"
|
listen "#{app_dir}/tmp/sockets/gitlab.socket"
|
||||||
|
|
||||||
pid "#{app_dir}/tmp/pids/unicorn.pid"
|
pid "#{app_dir}/tmp/pids/unicorn.pid"
|
||||||
stderr_path "#{app_dir}/log/unicorn.stderr.log"
|
stderr_path "#{app_dir}/log/unicorn.stderr.log"
|
||||||
|
|
|
@ -220,7 +220,7 @@ Application can be started with next command:
|
||||||
Edit /etc/nginx/nginx.conf. Add next code to **http** section:
|
Edit /etc/nginx/nginx.conf. Add next code to **http** section:
|
||||||
|
|
||||||
upstream gitlab {
|
upstream gitlab {
|
||||||
server unix:/tmp/gitlab.socket;
|
server unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|
Loading…
Reference in a new issue