Update Dockerfile
Browse files- Dockerfile +17 -17
Dockerfile
CHANGED
@@ -66,13 +66,13 @@ http {
|
|
66 |
location / {
|
67 |
proxy_pass http://frontend;
|
68 |
proxy_http_version 1.1;
|
69 |
-
proxy_set_header Upgrade
|
70 |
-
proxy_set_header Connection
|
71 |
-
proxy_set_header Host
|
72 |
-
proxy_cache_bypass
|
73 |
-
proxy_set_header X-Real-IP
|
74 |
-
proxy_set_header X-Forwarded-For
|
75 |
-
proxy_set_header X-Forwarded-Proto
|
76 |
proxy_read_timeout 300s;
|
77 |
proxy_connect_timeout 75s;
|
78 |
}
|
@@ -80,13 +80,13 @@ http {
|
|
80 |
location /api {
|
81 |
proxy_pass http://backend;
|
82 |
proxy_http_version 1.1;
|
83 |
-
proxy_set_header Upgrade
|
84 |
-
proxy_set_header Connection
|
85 |
-
proxy_set_header Host
|
86 |
-
proxy_cache_bypass
|
87 |
-
proxy_set_header X-Real-IP
|
88 |
-
proxy_set_header X-Forwarded-For
|
89 |
-
proxy_set_header X-Forwarded-Proto
|
90 |
proxy_read_timeout 300s;
|
91 |
proxy_connect_timeout 75s;
|
92 |
}
|
@@ -241,10 +241,10 @@ cd /app/web && PORT=3000 node server.js &\n\
|
|
241 |
\n\
|
242 |
# Wait for services to be ready\n\
|
243 |
echo "Waiting for services to be ready..."\n\
|
244 |
-
sleep
|
245 |
\n\
|
246 |
-
# Start nginx\n\
|
247 |
-
nginx -g "daemon off;" &\n\
|
248 |
\n\
|
249 |
wait' > /app/entrypoint.sh && \
|
250 |
chmod +x /app/entrypoint.sh
|
|
|
66 |
location / {
|
67 |
proxy_pass http://frontend;
|
68 |
proxy_http_version 1.1;
|
69 |
+
proxy_set_header Upgrade "\$http_upgrade";
|
70 |
+
proxy_set_header Connection "upgrade";
|
71 |
+
proxy_set_header Host "\$host";
|
72 |
+
proxy_cache_bypass "\$http_upgrade";
|
73 |
+
proxy_set_header X-Real-IP "\$remote_addr";
|
74 |
+
proxy_set_header X-Forwarded-For "\$proxy_add_x_forwarded_for";
|
75 |
+
proxy_set_header X-Forwarded-Proto "\$scheme";
|
76 |
proxy_read_timeout 300s;
|
77 |
proxy_connect_timeout 75s;
|
78 |
}
|
|
|
80 |
location /api {
|
81 |
proxy_pass http://backend;
|
82 |
proxy_http_version 1.1;
|
83 |
+
proxy_set_header Upgrade "\$http_upgrade";
|
84 |
+
proxy_set_header Connection "upgrade";
|
85 |
+
proxy_set_header Host "\$host";
|
86 |
+
proxy_cache_bypass "\$http_upgrade";
|
87 |
+
proxy_set_header X-Real-IP "\$remote_addr";
|
88 |
+
proxy_set_header X-Forwarded-For "\$proxy_add_x_forwarded_for";
|
89 |
+
proxy_set_header X-Forwarded-Proto "\$scheme";
|
90 |
proxy_read_timeout 300s;
|
91 |
proxy_connect_timeout 75s;
|
92 |
}
|
|
|
241 |
\n\
|
242 |
# Wait for services to be ready\n\
|
243 |
echo "Waiting for services to be ready..."\n\
|
244 |
+
sleep 10\n\
|
245 |
\n\
|
246 |
+
# Start nginx with debug logging\n\
|
247 |
+
nginx -g "daemon off; error_log /var/log/nginx/error.log debug;" &\n\
|
248 |
\n\
|
249 |
wait' > /app/entrypoint.sh && \
|
250 |
chmod +x /app/entrypoint.sh
|