sso
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user