diff options
author | crupest <crupest@outlook.com> | 2022-11-19 13:00:13 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-19 13:00:13 +0800 |
commit | f775f4c76691fc61b2993d81d9f1b4690e76b141 (patch) | |
tree | 9fe248e5379c66cbaa740243bebc04bb7df7cd29 /template/nginx/static-file.conf.template | |
parent | 1562a317e147954c5618ecdccbfd10c944bf81ce (diff) | |
download | crupest-f775f4c76691fc61b2993d81d9f1b4690e76b141.tar.gz crupest-f775f4c76691fc61b2993d81d9f1b4690e76b141.tar.bz2 crupest-f775f4c76691fc61b2993d81d9f1b4690e76b141.zip |
No caddy, only nginx and certbot.
Diffstat (limited to 'template/nginx/static-file.conf.template')
-rw-r--r-- | template/nginx/static-file.conf.template | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/template/nginx/static-file.conf.template b/template/nginx/static-file.conf.template new file mode 100644 index 0000000..01054cf --- /dev/null +++ b/template/nginx/static-file.conf.template @@ -0,0 +1,10 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name ${CRUPEST_NGINX_SUBDOMAIN}.${CRUPEST_DOMAIN}; + + ssl_certificate /etc/letsencrypt/live/${CRUPEST_NGINX_SUBDOMAIN}.${CRUPEST_DOMAIN}/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/${CRUPEST_NGINX_SUBDOMAIN}.${CRUPEST_DOMAIN}/privkey.pem; + + root ${CRUPEST_NGINX_ROOT}; +} |