Skip to content

Commit 75376a1

Browse files
committed
Web changes
1 parent 21cba90 commit 75376a1

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

services/web/nginx.ssl.conf.template

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
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+
17
server {
28
listen 443 ssl;
9+
access_log /usr/share/nginx/html/debug/access.log debug_log;
310
server_name _;
411
ssl_certificate /app/certs/server.crt;
512
ssl_certificate_key /app/certs/server.key;
@@ -94,6 +101,13 @@ server {
94101
try_files $uri $uri/ =404;
95102
}
96103

104+
location /debug/ {
105+
alias /usr/share/nginx/html/debug/;
106+
autoindex on;
107+
autoindex_exact_size off;
108+
autoindex_localtime on;
109+
}
110+
97111
location /.well-known/jwks.json {
98112
proxy_pass ${HTTP_PROTOCOL}://${IDENTITY_SERVICE}/identity/api/auth/jwks.json;
99113
proxy_ssl_verify off;
@@ -135,6 +149,7 @@ server {
135149

136150
server {
137151
listen 80;
152+
access_log /usr/share/nginx/html/debug/access.log debug_log;
138153
server_name _;
139154
client_max_body_size 50M;
140155
index index.html;
@@ -217,6 +232,13 @@ server {
217232
try_files $uri $uri/ =404;
218233
}
219234

235+
location /debug/ {
236+
alias /usr/share/nginx/html/debug/;
237+
autoindex on;
238+
autoindex_exact_size off;
239+
autoindex_localtime on;
240+
}
241+
220242
location /.well-known/jwks.json {
221243
proxy_pass ${HTTP_PROTOCOL}://${IDENTITY_SERVICE}/identity/api/auth/jwks.json;
222244
}

0 commit comments

Comments
 (0)