This commit is contained in:
2025-08-23 23:15:30 -04:00
parent e5bccc85c2
commit 02323a8b5c
7 changed files with 305 additions and 77 deletions

View File

@ -14,7 +14,7 @@ server {
# Apply rate limiting
limit_req zone=api burst=20 nodelay;
# Add test user header for HeaderAuthenticationProvider
# Development mode: only user email header required
proxy_set_header X-User-Email "test@example.com";
# Standard proxy headers
@ -38,7 +38,7 @@ server {
# Apply stricter rate limiting for auth endpoints
limit_req zone=login burst=5 nodelay;
# Add test user header for HeaderAuthenticationProvider
# Development mode: only user email header required
proxy_set_header X-User-Email "test@example.com";
# Standard proxy headers
@ -47,7 +47,7 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Proxy to API service (cannot have URI part in regex location)
# Proxy to API service
proxy_pass http://api-service:8080;
proxy_read_timeout 60s;
proxy_connect_timeout 10s;
@ -139,7 +139,7 @@ server {
location /api/ {
limit_req zone=api burst=50 nodelay;
# Admin test user
# Development mode: admin test user
proxy_set_header X-User-Email "admin@example.com";
proxy_set_header Host $host;
@ -159,7 +159,7 @@ server {
location /api/ {
limit_req zone=api burst=10 nodelay;
# Limited test user
# Development mode: limited test user
proxy_set_header X-User-Email "limited@example.com";
proxy_set_header Host $host;