Compare commits
3 Commits
632a459569
...
ccf775c76f
| Author | SHA1 | Date | |
|---|---|---|---|
| ccf775c76f | |||
| bfb3215507 | |||
| 0b5a8b9afe |
@ -2,7 +2,7 @@
|
|||||||
title: nginx
|
title: nginx
|
||||||
description:
|
description:
|
||||||
published: true
|
published: true
|
||||||
date: 2025-09-27T14:00:58.398Z
|
date: 2025-09-27T14:10:07.176Z
|
||||||
tags:
|
tags:
|
||||||
editor: markdown
|
editor: markdown
|
||||||
dateCreated: 2025-09-27T13:50:53.553Z
|
dateCreated: 2025-09-27T13:50:53.553Z
|
||||||
@ -20,4 +20,25 @@ The config files for each service is located at
|
|||||||
|
|
||||||
```
|
```
|
||||||
/etc/nginx/sites-available/
|
/etc/nginx/sites-available/
|
||||||
|
```
|
||||||
|
|
||||||
|
Example config file **wiki**:
|
||||||
|
```
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name wiki.home;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://192.168.1.101:3000;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Add symlink to the config file so nginx loads it
|
||||||
|
```
|
||||||
|
sudo ln -s /etc/nginx/sites-available/wiki /etc/nginx/sites-enabled/
|
||||||
```
|
```
|
||||||
Loading…
x
Reference in New Issue
Block a user