aboutsummaryrefslogtreecommitdiff
path: root/template/nginx
diff options
context:
space:
mode:
Diffstat (limited to 'template/nginx')
-rw-r--r--template/nginx/forbid_unknown_domain.conf2
-rw-r--r--template/nginx/reverse-proxy.conf.template3
-rw-r--r--template/nginx/root.conf.template3
-rw-r--r--template/nginx/ssl.conf.template (renamed from template/nginx/ssl.conf)3
-rw-r--r--template/nginx/static-file.conf.template3
5 files changed, 3 insertions, 11 deletions
diff --git a/template/nginx/forbid_unknown_domain.conf b/template/nginx/forbid_unknown_domain.conf
index ae96393..661a2b6 100644
--- a/template/nginx/forbid_unknown_domain.conf
+++ b/template/nginx/forbid_unknown_domain.conf
@@ -1,8 +1,6 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
- listen 443 ssl http2 default_server;
- listen [::]:443 ssl http2 default_server;
return 444;
}
diff --git a/template/nginx/reverse-proxy.conf.template b/template/nginx/reverse-proxy.conf.template
index d7eebdf..3526471 100644
--- a/template/nginx/reverse-proxy.conf.template
+++ b/template/nginx/reverse-proxy.conf.template
@@ -7,9 +7,6 @@ server {
listen [::]:443 ssl http2;
server_name ${CRUPEST_NGINX_SUBDOMAIN}.${CRUPEST_DOMAIN};
- ssl_certificate /etc/letsencrypt/live/${CRUPEST_DOMAIN}/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/${CRUPEST_DOMAIN}/privkey.pem;
-
location / {
proxy_pass http://${CRUPEST_NGINX_UPSTREAM_NAME};
proxy_http_version 1.1;
diff --git a/template/nginx/root.conf.template b/template/nginx/root.conf.template
index a6992c7..8214bf7 100644
--- a/template/nginx/root.conf.template
+++ b/template/nginx/root.conf.template
@@ -3,9 +3,6 @@ server {
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;
}
diff --git a/template/nginx/ssl.conf b/template/nginx/ssl.conf.template
index f2aadba..54205f1 100644
--- a/template/nginx/ssl.conf
+++ b/template/nginx/ssl.conf.template
@@ -4,6 +4,9 @@
# the up-to-date file that you will need to refer to when manually updating
# this file. Contents are based on https://ssl-config.mozilla.org
+ssl_certificate /etc/letsencrypt/live/${CRUPEST_DOMAIN}/fullchain.pem;
+ssl_certificate_key /etc/letsencrypt/live/${CRUPEST_DOMAIN}/privkey.pem;
+
ssl_session_cache shared:le_nginx_SSL:10m;
ssl_session_timeout 1440m;
ssl_session_tickets off;
diff --git a/template/nginx/static-file.conf.template b/template/nginx/static-file.conf.template
index 1597d10..0ada7cd 100644
--- a/template/nginx/static-file.conf.template
+++ b/template/nginx/static-file.conf.template
@@ -3,9 +3,6 @@ server {
listen [::]:443 ssl http2;
server_name ${CRUPEST_NGINX_SUBDOMAIN}.${CRUPEST_DOMAIN};
- ssl_certificate /etc/letsencrypt/live/${CRUPEST_DOMAIN}/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/${CRUPEST_DOMAIN}/privkey.pem;
-
root ${CRUPEST_NGINX_ROOT};
client_max_body_size 5G;