- docker-compose.yml with PostgreSQL, Redis, all services - nginx/nginx.conf reverse proxy configuration - services/whatsapp-core: package.json, tsconfig.json, Dockerfile - services/api-gateway: requirements.txt, Dockerfile, app/__init__.py - frontend: package.json, tsconfig.json, vite.config.ts, index.html, Dockerfile, nginx.conf Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
29 lines
638 B
Nginx Configuration File
29 lines
638 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location /api {
|
|
proxy_pass http://api-gateway:8000;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
location /auth {
|
|
proxy_pass http://api-gateway:8000;
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
location /ws {
|
|
proxy_pass http://whatsapp-core:3001;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
}
|
|
}
|