aboutsummaryrefslogtreecommitdiff
path: root/template/nginx/root.conf.template
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-19 13:00:13 +0800
committercrupest <crupest@outlook.com>2022-11-19 13:00:13 +0800
commit5fe53ec36e9298fd40a36877a9a5ceb791814f50 (patch)
tree9fe248e5379c66cbaa740243bebc04bb7df7cd29 /template/nginx/root.conf.template
parent02cb10f9dcf5cd228f563f28e607ad7403a5aa9c (diff)
downloadcrupest-5fe53ec36e9298fd40a36877a9a5ceb791814f50.tar.gz
crupest-5fe53ec36e9298fd40a36877a9a5ceb791814f50.tar.bz2
crupest-5fe53ec36e9298fd40a36877a9a5ceb791814f50.zip
No caddy, only nginx and certbot.
Diffstat (limited to 'template/nginx/root.conf.template')
-rw-r--r--template/nginx/root.conf.template10
1 files changed, 10 insertions, 0 deletions
diff --git a/template/nginx/root.conf.template b/template/nginx/root.conf.template
new file mode 100644
index 0000000..8af8fff
--- /dev/null
+++ b/template/nginx/root.conf.template
@@ -0,0 +1,10 @@
+server {
+ listen 443 ssl http2;
+ listen [::]:443 ssl http2;
+ server_name ${CRUPEST_DOMAIN};
+
+ ssl_certificate /etc/letsencrypt/live/${CRUPEST_DOMAIN}/fullchain.pem;
+ ssl_certificate_key /etc/letsencrypt/live/${CRUPEST_DOMAIN}/privkey.pem;
+
+ root /srv/www;
+}