Files
govoplan/tools/release/runtime/nginx.conf
T
zemion 2c515f73c2
Dependency Audit / dependency-audit (push) Successful in 1m38s
Deployment Installer / deployment-installer (push) Successful in 5s
Security Audit / security-audit (push) Successful in 10m2s
Implement supported ingress and TLS profiles
2026-08-03 01:15:06 +02:00

48 lines
1.1 KiB
Nginx Configuration File

pid /tmp/nginx.pid;
worker_processes auto;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /dev/stdout;
error_log /dev/stderr warn;
sendfile on;
server_tokens off;
client_body_temp_path /tmp/client_temp;
proxy_temp_path /tmp/proxy_temp;
map $http_x_forwarded_proto $govoplan_forwarded_proto {
default $scheme;
http http;
https https;
}
server {
listen 8080;
root /usr/share/nginx/html;
location = /health {
access_log off;
default_type text/plain;
return 200 "ok\n";
}
location /api/ {
proxy_pass http://load-balancer:8000;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $govoplan_forwarded_proto;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
}
location / {
try_files $uri $uri/ /index.html;
}
}
}