Completely revamped nginx config

This commit is contained in:
Jef Roosens 2021-04-23 16:26:32 +02:00
parent 3411f3d0a9
commit d13573f87d
Signed by: Jef Roosens
GPG key ID: B580B976584B5F30
19 changed files with 152 additions and 83 deletions

View file

@ -1,9 +1,5 @@
http {
# SSL CONFIGURATION
# Key locations
ssl_certificate /etc/letsencrypt/live/${MAIN_DOMAIN}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/${MAIN_DOMAIN}/privkey.pem;
# COMMON SSL CONFIGURATION
# Allowed protocols
ssl_protocols TLSv1.2;
@ -29,7 +25,6 @@ http {
return 301 https://$host:${HTTPS_PORT}$request_uri;
}
# LOAD SITES
include sites-enabled/*.conf;
}