69 lines
2.2 KiB
Plaintext
69 lines
2.2 KiB
Plaintext
add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
|
|
|
|
proxy_cache_path /tmp/luftglanz/ levels=1:2 keys_zone=my_cache_luftglanz:10m max_size=10g
|
|
inactive=60m use_temp_path=off;
|
|
|
|
server {
|
|
listen 80;
|
|
server_name kontakt.luftglanz.de;
|
|
return 301 https://$server_name/luftglanz$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 10.0.0.29:443 ssl http2;
|
|
server_name kontakt.luftglanz.de;
|
|
|
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/kontakt.luftglanz.de/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/kontakt.luftglanz.de/privkey.pem;
|
|
ssl_dhparam /etc/ssl/certs/dhparam.pem;
|
|
|
|
access_log /var/log/nginx/luftglanz-access_log;
|
|
error_log /var/log/nginx/luftglanz-error_log;
|
|
|
|
set $upstream 10.0.0.48;
|
|
|
|
location / {
|
|
proxy_cache my_cache_luftglanz;
|
|
proxy_cache_revalidate on;
|
|
proxy_cache_min_uses 3;
|
|
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
|
|
proxy_cache_lock on;
|
|
proxy_pass_header Authorization;
|
|
|
|
proxy_pass http://$upstream:8100;
|
|
proxy_http_version 1.1;
|
|
|
|
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 https;
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
proxy_set_header Connection $http_connection;
|
|
|
|
proxy_buffering off;
|
|
client_max_body_size 0;
|
|
proxy_read_timeout 36000s;
|
|
proxy_redirect off;
|
|
proxy_ssl_session_reuse off;
|
|
|
|
# Optional HTTP Basic Auth
|
|
# auth_basic "Username and Password Required";
|
|
# auth_basic_user_file /etc/nginx/.htpasswd;
|
|
}
|
|
|
|
location /ws {
|
|
proxy_pass http://$upstream:8100;
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "Upgrade";
|
|
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 https;
|
|
}
|
|
}
|
|
|