+1
-1
@@ -30,6 +30,6 @@ COPY deployment/entry.sh deployment/replace-variables.sh /app/
|
|||||||
|
|
||||||
RUN chmod +x /app/entry.sh /app/replace-variables.sh
|
RUN chmod +x /app/entry.sh /app/replace-variables.sh
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000 4000 5000
|
||||||
|
|
||||||
CMD ["sh", "/app/entry.sh"]
|
CMD ["sh", "/app/entry.sh"]
|
||||||
@@ -9,6 +9,9 @@ http {
|
|||||||
location /api/ {
|
location /api/ {
|
||||||
proxy_pass http://127.0.0.1:4000/;
|
proxy_pass http://127.0.0.1:4000/;
|
||||||
proxy_set_header Host $host;
|
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-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
@@ -17,6 +20,9 @@ http {
|
|||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:5000;
|
proxy_pass http://127.0.0.1:5000;
|
||||||
proxy_set_header Host $host;
|
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-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|||||||
Reference in New Issue
Block a user