- Finnhub: Add missing /test endpoint - AlphaVantage: Fix test endpoint deserialization (handle null api_url) - Mock Provider: Add /test endpoint and fix Zodios validation error by adding Mock enum - Deployment: Remove Mock Provider from production deployment script - Infrastructure: Add production Dockerfiles and compose configs
37 lines
1022 B
Plaintext
37 lines
1022 B
Plaintext
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# Compression
|
|
gzip on;
|
|
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
# Proxy API requests to the backend
|
|
# Matches /api/v1/..., /api/context/..., etc.
|
|
location /api/ {
|
|
proxy_pass http://api-gateway:4000/api/;
|
|
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;
|
|
}
|
|
|
|
# Proxy specific endpoints that are at root level in api-gateway
|
|
location /health {
|
|
proxy_pass http://api-gateway:4000/health;
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
location /tasks/ {
|
|
proxy_pass http://api-gateway:4000/tasks/;
|
|
proxy_set_header Host $host;
|
|
}
|
|
}
|
|
|