install script and nginx example

This commit is contained in:
2024-11-22 19:04:42 -08:00
parent 8385487b82
commit fe908bfc43
2 changed files with 66 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
server {
listen 80;
server_name domain.tld;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name domain.tld;
ssl_certificate /etc/letsencrypt/live/domain.tld/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain.tld/privkey.pem;  
location / {
proxy_pass http://127.0.0.1:1611;
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;  
}
}