add nginx config files

This commit is contained in:
2026-01-11 16:59:07 +01:00
parent 8a92b19bb3
commit d2be739590
10 changed files with 406 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
server {
listen 80;
server_name benoit.mathieu.wiki www.benoit.mathieu.wiki;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name benoit.mathieu.wiki;
ssl_certificate /etc/letsencrypt/live/benoit.mathieu.wiki/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/benoit.mathieu.wiki/privkey.pem;
location / {
proxy_pass http://192.168.1.38:8080;
proxy_redirect off;
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;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}