26 lines
720 B
Plaintext
26 lines
720 B
Plaintext
# Work Package Suite — NGINX site config
|
|
# This container sits behind an external reverse proxy that handles SSL.
|
|
# It listens on port 80 (plain HTTP on the internal Docker network).
|
|
|
|
server {
|
|
listen 80;
|
|
server_name wp.controls.dev;
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
# Proxy /api/ to the FastAPI container (service name "api" on the internal network)
|
|
location /api/ {
|
|
proxy_pass http://api:8000;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
client_max_body_size 5m;
|
|
}
|
|
}
|