docs: update home/server/nginx

This commit is contained in:
Lukas Forsberg 2025-09-27 16:10:08 +02:00 committed by Lukas Forsberg
parent bfb3215507
commit ccf775c76f

View File

@ -2,7 +2,7 @@
title: nginx title: nginx
description: description:
published: true published: true
date: 2025-09-27T14:08:44.940Z 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
@ -22,7 +22,7 @@ The config files for each service is located at
/etc/nginx/sites-available/ /etc/nginx/sites-available/
``` ```
Example config file: Example config file **wiki**:
``` ```
server { server {
listen 80; listen 80;
@ -36,4 +36,9 @@ server {
proxy_set_header X-Forwarded-Proto $scheme; 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/
``` ```