From bfb1af391d0f2300faf34cda72c97431ff98ecbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sun, 20 Feb 2022 04:12:50 +0100 Subject: [PATCH] add nginx config --- nginx.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 nginx.conf 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