Files
training-software/frontend/nginx.frontend.conf
Paperclip CTO 6cfeeff0f9
All checks were successful
CI / lint (push) Successful in 6s
CI / test (push) Successful in 21s
CI / build-container (push) Successful in 6s
feat(deploy): add compose profile with dedicated frontend container for reverse-proxy setups
2026-05-19 09:12:04 +02:00

30 lines
713 B
Plaintext

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_pass http://web:8000;
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;
}
location /healthz/ {
proxy_pass http://web:8000/healthz/;
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;
}
}