mirror of
https://github.com/gitlabhq/gitlab-recipes.git
synced 2026-01-10 23:18:13 -05:00
Fixed markdown issues
This commit is contained in:
@@ -5,6 +5,8 @@ Added the SSL section and a rewrite of port 80 to 443 in the Nginx configuration
|
||||
nano /etc/nginx/sites-enabled/gitlab
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
```bash
|
||||
server {
|
||||
listen 80;
|
||||
@@ -58,6 +60,7 @@ server {
|
||||
|
||||
### 2. Place the SSL certificates
|
||||
Create the folder for the SSL certificates and place the SSL certificates & the SSL certificates key here. In our situation, we combine the SSL Certificate with the CA Root Certificate.
|
||||
|
||||
```bash
|
||||
mkdir /etc/nginx/ssl/ -p
|
||||
cp /home/source.jcid.nl.cert /etc/nginx/ssl/server.crt
|
||||
@@ -66,9 +69,11 @@ cp /home/source.jcid.nl.key /etc/nginx/ssl/server.key
|
||||
|
||||
### 3. Update Gitlab config files
|
||||
Set the Gitlab https settings to true
|
||||
|
||||
```bash
|
||||
nano /home/git/gitlab/config/gitlab.yml
|
||||
```
|
||||
|
||||
```bash
|
||||
## GitLab settings
|
||||
gitlab:
|
||||
@@ -80,15 +85,20 @@ nano /home/git/gitlab/config/gitlab.yml
|
||||
|
||||
### 4. Update Gitlab shell config files
|
||||
Set the Gitlab shell base url
|
||||
|
||||
```bash
|
||||
nano /home/git/gitlab-shell/config.yml
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
```bash
|
||||
# Url to gitlab instance. Used for api calls. Should be ends with slash.
|
||||
gitlab_url: "https://source.jcid.nl/"
|
||||
```
|
||||
|
||||
### 5. Restart application
|
||||
|
||||
```bash
|
||||
sudo service gitlab restart
|
||||
sudo service nginx restart
|
||||
|
||||
Reference in New Issue
Block a user