22
0
Fork 0

nginx droits socket

This commit is contained in:
Benoît S. 2016-12-02 14:57:13 +01:00
parent 9921a4675b
commit bc55dfca82
1 changed files with 4 additions and 3 deletions

View File

@ -50,14 +50,13 @@ python-docutils pkg-config cmake nodejs bundler ruby2.3 git golang
## Compte UNIX
Créer un compte UNIX *foo* et ajouter l'utilisateur *nginx* dans le groupe *foo* :
Créer un compte UNIX *foo* :
~~~
# adduser --disabled-login --gecos 'GitLab instance foo' foo
# adduser nginx foo
~~~
> **Note** : Il est nécessaire d'ajouter "nginx" au groupe de l'instance pour avoir des droits en read-write sur la socket de gitlab-workhorse.
> **Note** : Assurez-vous d'avoir `DIR_MODE=0750` dans `/etc/adduser.conf` pour créer le home en 750.
## PostgreSQL
@ -337,6 +336,8 @@ On utilise Nginx, c'est le seul serveur web supporté officiellement par GitLab
~~~
# apt install nginx
# adduser nginx foo
# chmod -R g+rwX /home/foo/gitlab/tmp/{pids,sockets}
# install -m 644 /home/foo/gitlab/lib/support/nginx/gitlab-ssl /etc/nginx/sites-available/foo
# sed -i -e 's@/home/git@/home/foo@g' \
-e 's/YOUR_SERVER_FQDN/foo.gitlab.example.com/g' \