This repository has been archived on 2021-12-24. You can view files and clone it, but cannot push or open issues/pull-requests.
2021-04-23 16:26:32 +02:00
|
|
|
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 / {
|
2021-04-23 21:51:47 +02:00
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Host $server_name;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header X-Forwarded-Ssl on;
|
|
|
|
|
2021-04-23 16:26:32 +02:00
|
|
|
resolver 127.0.0.11;
|
|
|
|
proxy_pass http://${KOEL_HOST}:80;
|
|
|
|
}
|
|
|
|
}
|