mirror of
https://github.com/jlengrand/gitlab-recipes.git
synced 2026-03-10 08:11:17 +00:00
Improvements for README.md
Simple improvements to avoid some trip ups and save a few minutes of troubleshooting. The guide is quite long and it's easy to get into a habit of copy and pasting.
This commit is contained in:
@@ -525,22 +525,25 @@ ln -sf /etc/nginx/sites-available/gitlab /etc/nginx/sites-enabled/gitlab
|
||||
```
|
||||
|
||||
Edit `/etc/nginx/nginx.conf` and replace `include /etc/nginx/conf.d/*.conf;`
|
||||
with `/etc/nginx/sites-enabled/*;`
|
||||
with `include /etc/nginx/sites-enabled/*;`
|
||||
|
||||
Edit `/etc/nginx/sites-available/gitlab` and replace `git.example.com` with your FQDN.
|
||||
|
||||
Add `nginx` user to `git` group.
|
||||
|
||||
usermod -a -G git nginx
|
||||
chmod g+rx /home/git/
|
||||
|
||||
Finally start nginx with:
|
||||
|
||||
service nginx start
|
||||
|
||||
**Note:** Don't forget to add a SSL certificate or generate a Self Signed Certificate
|
||||
|
||||
cd /etc/nginx
|
||||
openssl req -new -x509 -nodes -days 3560 -out gitlab.crt -keyout gitlab.key
|
||||
|
||||
Finally start nginx with:
|
||||
|
||||
service nginx start
|
||||
|
||||
### Apache
|
||||
|
||||
We will configure apache with module `mod_proxy` which is loaded by default when
|
||||
|
||||
Reference in New Issue
Block a user