setup-nginx-proxy/config/example-standard

22 lines
737 B
Plaintext

server {
listen 80;
listen 443 ssl http2 ;
# server_name www.yourdomain.ext yourdomain.ext;
http2_push_preload on;
# ssl_certificate /etc/letsencrypt/live/yourdomain.ext/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/yourdomain.ext/privkey.pem;
add_header Strict-Transport-Security "max-age=31536000";
location / {
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass_request_headers on;
# proxy_pass http://localhost:####;
# proxy_pass http://###.###.###.###:####;
}
}