change: change nginx.conf file

This commit is contained in:
behruz-dev
2025-08-26 15:42:23 +05:00
parent e00176bccb
commit dd14d3e64c

View File

@@ -27,14 +27,14 @@ http {
server_name _; server_name _;
location / { location / {
proxy_pass http://web:8000; proxy_pass http://web:9000;
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 https; proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
} }
location /ws/ { location /ws/ {
proxy_pass http://web:8000; # Uvicorn serveri ishga tushadigan port proxy_pass http://web:9000; # Uvicorn serveri ishga tushadigan port
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade'; proxy_set_header Connection 'upgrade';