diff --git a/Dockerfile b/Dockerfile index 3dfa50a6..c4223712 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,6 +30,6 @@ COPY deployment/entry.sh deployment/replace-variables.sh /app/ RUN chmod +x /app/entry.sh /app/replace-variables.sh -EXPOSE 3000 +EXPOSE 3000 4000 5000 CMD ["sh", "/app/entry.sh"] \ No newline at end of file diff --git a/deployment/nginx.conf b/deployment/nginx.conf index aa285d97..2c9bd856 100644 --- a/deployment/nginx.conf +++ b/deployment/nginx.conf @@ -9,6 +9,9 @@ http { location /api/ { proxy_pass http://127.0.0.1:4000/; proxy_set_header Host $host; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; @@ -17,6 +20,9 @@ http { location / { proxy_pass http://127.0.0.1:5000; proxy_set_header Host $host; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme;