Route frontend API proxy through public host
Build and deploy Flutter Web / build (push) Failing after 4m35s

This commit is contained in:
Ruslan Bakiev
2026-06-23 21:03:41 +07:00
parent d726dbcf30
commit b64d202c4b
+6 -4
View File
@@ -50,18 +50,20 @@ server {
}
location = /graphql {
proxy_pass http://mapflow-api-0bvuyz:4000/graphql;
proxy_pass https://api.map.craftee.vn/graphql;
proxy_ssl_server_name on;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Host api.map.craftee.vn;
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;
}
location /telegram/ {
proxy_pass http://mapflow-api-0bvuyz:4000/telegram/;
proxy_pass https://api.map.craftee.vn/telegram/;
proxy_ssl_server_name on;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Host api.map.craftee.vn;
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;