Add 'scripts/nginx-site-template.conf'

pull/4/head
drunkendog 2022-09-22 19:16:46 +01:00
parent d3fccaba30
commit 36cb85df11
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
server {
listen 443;
# server_name serverNameVar;
ssl on;
ssl_certificate /etc/letsencrypt/live/news.162536.xyz/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/news.162536.xyz/privkey.pem;
location / {
proxy_pass http://127.0.0.1:8080/;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
}
}
server {
listen 80;
# server_name serverNameVar;
location / {
return 301 https://news.162536.xyz$request_uri;
}
}