From d99de26c027d6db038ba73953ff4847af038a77f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 18 Apr 2024 18:25:27 +0300 Subject: [PATCH] Update 000-default.conf --- files/nginx/conf/000-default.conf | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/files/nginx/conf/000-default.conf b/files/nginx/conf/000-default.conf index e3271cc..9d11dd0 100644 --- a/files/nginx/conf/000-default.conf +++ b/files/nginx/conf/000-default.conf @@ -19,7 +19,7 @@ server { root /usr/share/nginx/html; index index.html index.htm; - return 301 https://$host$request_uri/; + return 301 https://$host$request_uri; } location /.well-known/acme-challenge/ { @@ -65,8 +65,11 @@ server { gunzip on; location / { - root /usr/share/nginx/html; - index index.html index.htm; + proxy_pass http://127.0.0.1:3000/; + proxy_set_header Host $http_host; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; } if ($request_method !~ ^(GET|HEAD|POST)$ )