- Add migration 013_city_map_coordinates.sql with map coordinates, zones, and agents table - Add /city/map API endpoint in city-service - Add /city/agents and /city/agents/online endpoints - Extend presence aggregator to include agents[] in snapshot - Add AgentsSource for fetching agent data from DB - Create CityMap component with interactive room tiles - Add useCityMap hook for fetching map data - Update useGlobalPresence to include agents - Add map/list view toggle on /city page - Add agent badges to room cards and map tiles
43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
Plaintext
upstream messaging_service {
|
|
server messaging-service:7004;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name api.daarion.city localhost;
|
|
|
|
client_max_body_size 100M;
|
|
|
|
# Messaging API
|
|
location /api/messaging/ {
|
|
proxy_pass http://messaging_service;
|
|
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;
|
|
}
|
|
|
|
# WebSocket for messaging
|
|
location /ws/messaging/ {
|
|
proxy_pass http://messaging_service;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
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_read_timeout 86400;
|
|
}
|
|
|
|
# Health check
|
|
location /health {
|
|
proxy_pass http://messaging_service/health;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|