| # the following configuration is for redirect test | |
| server { | |
| listen 81; | |
| server_name localhost; | |
| access_log /tmp/forward-access.log; | |
| error_log /tmp/forward-error.log; | |
| location / { | |
| client_max_body_size 1024M; | |
| # forward all other requests to port 80 | |
| proxy_pass http://127.0.0.1:80; | |
| } | |
| location /health { | |
| access_log off; | |
| add_header 'Content-Type' 'application/json'; | |
| return 200 '{"status":"UP"}'; | |
| } | |
| } |