Fix jwt-token
This commit is contained in:
@@ -11,11 +11,11 @@ upstream selfservice_docker_ssl {
|
|||||||
|
|
||||||
# Drone Detection System upstreams
|
# Drone Detection System upstreams
|
||||||
upstream drone_frontend {
|
upstream drone_frontend {
|
||||||
server 127.0.0.1:3000; # Frontend container mapped port
|
server 127.0.0.1:3001; # Frontend container mapped port
|
||||||
}
|
}
|
||||||
|
|
||||||
upstream drone_backend {
|
upstream drone_backend {
|
||||||
server 127.0.0.1:3001; # Backend API container mapped port
|
server 127.0.0.1:3002; # Backend API container mapped port
|
||||||
}
|
}
|
||||||
|
|
||||||
# HTTP configuration
|
# HTTP configuration
|
||||||
@@ -147,6 +147,26 @@ server {
|
|||||||
proxy_read_timeout 300s;
|
proxy_read_timeout 300s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Socket.IO endpoint without /drones/ prefix (for compatibility)
|
||||||
|
location /socket.io/ {
|
||||||
|
proxy_pass http://drone_backend/socket.io/;
|
||||||
|
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;
|
||||||
|
|
||||||
|
# WebSocket specific headers
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_cache_bypass $http_upgrade;
|
||||||
|
|
||||||
|
# Longer timeouts for persistent connections
|
||||||
|
proxy_connect_timeout 60s;
|
||||||
|
proxy_send_timeout 300s;
|
||||||
|
proxy_read_timeout 300s;
|
||||||
|
}
|
||||||
|
|
||||||
# Original selfservice application - proxy directly to Docker container
|
# Original selfservice application - proxy directly to Docker container
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://selfservice_docker;
|
proxy_pass http://selfservice_docker;
|
||||||
|
|||||||
Reference in New Issue
Block a user