legacy-server-config/nginx/sites/website

33 lines
978 B
Plaintext
Raw Normal View History

2021-01-01 15:09:53 +00:00
server {
listen 80;
server_name teier.eu www.teier.eu;
return 301 https://www.teier.eu:443$request_uri;
}
server {
listen 443 ssl http2;
server_name teier.eu www.teier.eu;
ssl on;
ssl_certificate /etc/letsencrypt/live/teier.eu/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/teier.eu/privkey.pem;
location / {
proxy_pass http://127.0.0.1:8080/;
proxy_redirect off;
proxy_pass_header Authorization;
proxy_set_header Referer $http_referer;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_buffering off;
proxy_request_buffering off;
client_max_body_size 0;
proxy_read_timeout 36000s;
proxy_ssl_session_reuse off;
}
}