move nginx https setup into a snippet

This commit is contained in:
Daniel Micay
2020-04-01 10:28:10 -04:00
parent ba080193c8
commit 3e4ee0cb28
2 changed files with 15 additions and 51 deletions

11
nginx/snippets/https.conf Normal file
View File

@@ -0,0 +1,11 @@
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/letsencrypt/live/grapheneos.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/grapheneos.org/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
ssl_trusted_certificate /etc/letsencrypt/live/grapheneos.org/chain.pem;
ssl_stapling on;
ssl_stapling_verify on;