blob: ee7587820230429997a6f0b407d32eaa2156aff0 (
plain) (
tree)
|
|
server {
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
http2 on;
ssl_certificate ${znc_tls_cert};
ssl_certificate_key ${znc_tls_key};
add_header Strict-Transport-Security "max-age=63072000" always;
location / {
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 \$scheme;
proxy_pass http://127.0.0.1:${znc_http_port}/;
}
}
|