This repository has been archived on 2023-12-13. You can view files and clone it, but cannot push or open issues or pull requests.
neko-deployment/nginx.conf

20 lines
776 B
Nginx Configuration File
Raw Permalink Normal View History

2022-02-20 04:12:50 +01:00
server {
listen 8080 ssl http2;
server_name neko.tormakristof.eu;
ssl_certificate /cert/live/neko.tormakristof.eu/fullchain.pem;
ssl_certificate_key /cert/live/neko.tormakristof.eu/privkey.pem;
location / {
proxy_pass http://traefik:8080; # traefik domain (name of the service)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Protocol $scheme;
}
}