This commit is contained in:
2025-08-26 19:15:37 -04:00
parent 7ca61eb712
commit 86900b0bd4
16 changed files with 2099 additions and 8 deletions

View File

@ -57,6 +57,15 @@ server {
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
}
# Test endpoints (development only)
location /test/ {
proxy_pass http://api-service:8080;
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;
}
# Metrics endpoint (for monitoring)
location /metrics {
# Only allow internal access
@ -135,6 +144,22 @@ server {
listen 8081;
server_name localhost;
# Health check endpoint (direct response)
location /health {
access_log off;
return 200 "healthy\n";
add_header Content-Type text/plain;
}
# Test endpoints (development only)
location /test/ {
proxy_pass http://api-service:8080;
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;
}
# Admin user for testing
location /api/ {
limit_req zone=api burst=50 nodelay;