sharenet/nginx/nginx.conf
continuist 719d745bcb
Some checks failed
Podman Rootless Demo / test-backend (push) Has been skipped
Podman Rootless Demo / test-frontend (push) Has been skipped
Podman Rootless Demo / build-backend (push) Has been skipped
Podman Rootless Demo / build-frontend (push) Has been skipped
Podman Rootless Demo / deploy-prod (push) Failing after 31s
Comment out /api splitter for now, assume all traffic to backend comes from the frontend
2025-09-21 00:45:35 -04:00

49 lines
1.4 KiB
Nginx Configuration File

# user nginx;
worker_processes auto;
pid /tmp/nginx.pid;
events { worker_connections 1024; }
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
client_body_temp_path /tmp/client_temp;
proxy_temp_path /tmp/proxy_temp;
fastcgi_temp_path /tmp/fastcgi_temp;
uwsgi_temp_path /tmp/uwsgi_temp;
scgi_temp_path /tmp/scgi_temp;
# public HTTP entrypoint (host will terminate TLS and proxy here)
server {
listen 8080;
# exact-match: wins over everything else in this server
location = /healthz {
access_log off;
add_header Content-Type text/plain;
return 200 "ok\n";
}
# frontend default
location / {
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Connection "";
proxy_pass http://127.0.0.1:${PROD_FRONTEND_PORT};
}
# backend API
# location /api/ {
# proxy_http_version 1.1;
# proxy_set_header Host $host;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Proto $scheme;
# proxy_set_header Connection "";
# proxy_pass http://127.0.0.1:${PROD_BACKEND_PORT}/;
# }
}
}