Update README.md
This commit is contained in:
parent
507380f5cd
commit
d941562980
39
README.md
39
README.md
|
@ -48,28 +48,29 @@ sudo bash install.sh
|
||||||
|
|
||||||
Create a file called realms.conf in /etc/nginx/conf.d
|
Create a file called realms.conf in /etc/nginx/conf.d
|
||||||
|
|
||||||
```/etc/nginx/conf.d/realms.conf```
|
```
|
||||||
|
/etc/nginx/conf.d/realms.conf
|
||||||
|
```
|
||||||
|
|
||||||
Put the following sample configuration in that file.
|
Put the following sample configuration in that file.
|
||||||
|
|
||||||
```
|
server {
|
||||||
server {
|
listen 80;
|
||||||
listen 80;
|
|
||||||
|
# Your domain here
|
||||||
# Your domain here
|
server_name wiki.example.org;
|
||||||
server_name wiki.example.org;
|
|
||||||
|
location / {
|
||||||
location / {
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header Host $http_host;
|
||||||
proxy_set_header Host $http_host;
|
|
||||||
|
proxy_pass http://127.0.0.1:5000/;
|
||||||
proxy_pass http://127.0.0.1:5000/;
|
proxy_redirect off;
|
||||||
proxy_redirect off;
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
Test Nginx config
|
Test Nginx config
|
||||||
```sudo nginx -t```
|
```sudo nginx -t```
|
||||||
|
|
Loading…
Reference in a new issue