Some checks failed
Build and Deploy Docs / build-and-deploy (push) Has been cancelled
- Created logs/ structure (sessions, operations, incidents) - Added session-start/log/end scripts - Installed Git hooks for auto-logging commits/pushes - Added shell integration for zsh - Created CHANGELOG.md - Documented today's session (2026-01-10)
54 lines
1.0 KiB
Plaintext
54 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;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|