diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..1559dae --- /dev/null +++ b/nginx.conf @@ -0,0 +1,20 @@ +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; + } +} \ No newline at end of file