- "docker-compose.yml" - ".env.example" - "docker/Dockerfile.api" - "docker/Dockerfile.web" - "docker/nginx.conf" - "backend/main.py" - "backend/requirements.txt" - "config/canonical_tags.yaml" GSD-Task: S01/T01
24 lines
561 B
Nginx Configuration File
24 lines
561 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# SPA fallback
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
# API proxy
|
|
location /api/ {
|
|
proxy_pass http://chrysopedia-api:8000;
|
|
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;
|
|
}
|
|
|
|
location /health {
|
|
proxy_pass http://chrysopedia-api:8000;
|
|
}
|
|
}
|