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

@ -0,0 +1,14 @@
server {
# SSL Key locations
ssl_certificate /etc/letsencrypt/live/${KOEL_DOMAIN}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/${KOEL_DOMAIN}/privkey.pem;
listen ${HTTPS_PORT} ssl;
listen [::]:${HTTPS_PORT} ssl;
server_name ${KOEL_DOMAIN};
location / {
resolver 127.0.0.11;
proxy_pass http://${KOEL_HOST}:80;
}
}