Files
flutter/nginx.conf
T
Ruslan Bakiev 44d72dce00
Build and deploy Flutter Web / build (push) Successful in 2m24s
Proxy Telegram routes through Flutter nginx
2026-06-12 22:55:47 +07:00

29 lines
757 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location = /graphql {
proxy_pass http://mapflow-api-0bvuyz:4000/graphql;
proxy_http_version 1.1;
proxy_set_header Host $host;
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_http_version 1.1;
proxy_set_header Host $host;
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;
}
}