add nginx config
This commit is contained in:
parent
accaa802ae
commit
bfb1af391d
20
nginx.conf
Normal file
20
nginx.conf
Normal file
@ -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;
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user