prettyfy and scalable

This commit is contained in:
2024-10-10 13:19:21 +02:00
parent 1d77e50134
commit af796fbf6a
3 changed files with 30 additions and 29 deletions
+21
View File
@@ -0,0 +1,21 @@
server {
listen 80;
server_name excalidraw.psi.ch;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name excalidraw.psi.ch;
ssl_certificate /etc/nginx/certs/excalidraw.psi.ch.crt;
ssl_certificate_key /etc/nginx/private/excalidraw.psi.ch.key;
location / {
proxy_pass http://excalidraw:80;
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;
}
}