We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a480d06 commit 04eb186Copy full SHA for 04eb186
web-server/nginx/README.md
@@ -1,10 +1,13 @@
1
# CentOS related Nginx notes
2
3
-* If nginx is installed through the package manager, adjust sites in conf.d instead of sites-enabled.
+* If nginx is installed through the package manager, adjust sites in `/etc/nginx/conf.d/` instead of `/etc/nginx/sites-available/`.
4
5
-* Replace the default `nginx` user with `gitlab` in group `root`.
+* Replace the default `nginx` user with `git` and group `root` in `/etc/nginx/nginx.conf`:
6
7
- In `/etc/nginx/nginx.conf`:
+ #user nginx;
8
+ user git root;
9
- #user nginx;
10
- user gitlab root;
+ or add `nginx` user to `git` group.
11
+
12
+ sudo usermod -a -G git nginx
13
+ sudo chmod g+rx /home/git/
0 commit comments