|
| 1 | +log_format debug_log '$remote_addr - $remote_user [$time_local] ' |
| 2 | + '"$request" $status $body_bytes_sent ' |
| 3 | + '"$http_referer" "$http_user_agent" ' |
| 4 | + 'upstream: "$upstream_addr" ' |
| 5 | + 'request_body: "$request_body"'; |
| 6 | + |
1 | 7 | server { |
2 | 8 | listen 443 ssl; |
| 9 | + access_log /usr/share/nginx/html/debug/access.log debug_log; |
3 | 10 | server_name _; |
4 | 11 | ssl_certificate /app/certs/server.crt; |
5 | 12 | ssl_certificate_key /app/certs/server.key; |
@@ -94,6 +101,13 @@ server { |
94 | 101 | try_files $uri $uri/ =404; |
95 | 102 | } |
96 | 103 |
|
| 104 | + location /debug/ { |
| 105 | + alias /usr/share/nginx/html/debug/; |
| 106 | + autoindex on; |
| 107 | + autoindex_exact_size off; |
| 108 | + autoindex_localtime on; |
| 109 | + } |
| 110 | + |
97 | 111 | location /.well-known/jwks.json { |
98 | 112 | proxy_pass ${HTTP_PROTOCOL}://${IDENTITY_SERVICE}/identity/api/auth/jwks.json; |
99 | 113 | proxy_ssl_verify off; |
@@ -135,6 +149,7 @@ server { |
135 | 149 |
|
136 | 150 | server { |
137 | 151 | listen 80; |
| 152 | + access_log /usr/share/nginx/html/debug/access.log debug_log; |
138 | 153 | server_name _; |
139 | 154 | client_max_body_size 50M; |
140 | 155 | index index.html; |
@@ -217,6 +232,13 @@ server { |
217 | 232 | try_files $uri $uri/ =404; |
218 | 233 | } |
219 | 234 |
|
| 235 | + location /debug/ { |
| 236 | + alias /usr/share/nginx/html/debug/; |
| 237 | + autoindex on; |
| 238 | + autoindex_exact_size off; |
| 239 | + autoindex_localtime on; |
| 240 | + } |
| 241 | + |
220 | 242 | location /.well-known/jwks.json { |
221 | 243 | proxy_pass ${HTTP_PROTOCOL}://${IDENTITY_SERVICE}/identity/api/auth/jwks.json; |
222 | 244 | } |
|
0 commit comments