Skip to content

Commit 04eb186

Browse files
committed
Add alternative CentOS nginx setup. Implement #31
1 parent a480d06 commit 04eb186

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

web-server/nginx/README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# CentOS related Nginx notes
22

3-
* If nginx is installed through the package manager, adjust sites in conf.d instead of sites-enabled.
3+
* If nginx is installed through the package manager, adjust sites in `/etc/nginx/conf.d/` instead of `/etc/nginx/sites-available/`.
44

5-
* Replace the default `nginx` user with `gitlab` in group `root`.
5+
* Replace the default `nginx` user with `git` and group `root` in `/etc/nginx/nginx.conf`:
66

7-
In `/etc/nginx/nginx.conf`:
7+
#user nginx;
8+
user git root;
89

9-
#user nginx;
10-
user gitlab root;
10+
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

Comments
 (0)