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)$ )