Skip to content

Instantly share code, notes, and snippets.

@GamePlayer-8
Created July 19, 2023 07:52
Show Gist options
  • Save GamePlayer-8/816710d3f6b85ae59d17888c33c9303d to your computer and use it in GitHub Desktop.
Save GamePlayer-8/816710d3f6b85ae59d17888c33c9303d to your computer and use it in GitHub Desktop.
nginx_letsencrypt.conf
resolver 127.0.0.1 valid=300s;
resolver_timeout 5s;
ssl_certificate /etc/letsencrypt/live/$host/cert.pem;
ssl_certificate_key /etc/letsencrypt/live/$host/privkey.pem;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
ssl_stapling off;
ssl_stapling_verify off;
include /etc/letsencrypt/options-ssl-nginx.conf;
proxy_hide_header X-Frame-Options;
add_header X-XSS-Protection "1; mode=block";
add_header X-Frame-Options "ALLOWALL";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment