Mercurial > code > home > repos > light9
changeset 2379:1cbb52eac89b
nginx log what server/path you proxy to
author | drewp@bigasterisk.com |
---|---|
date | Sun, 12 May 2024 19:32:50 -0700 |
parents | 6c98a6677a7d |
children | 0d88befa5132 |
files | src/light9/homepage/write_config.py |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/light9/homepage/write_config.py Sun May 12 19:05:02 2024 -0700 +++ b/src/light9/homepage/write_config.py Sun May 12 19:32:50 2024 -0700 @@ -34,7 +34,7 @@ worker_processes 1; daemon off; -error_log /tmp/light9_homepage.err; +error_log /dev/stderr; pid /dev/null; events {{ @@ -42,7 +42,7 @@ }} http {{ - include {mime_types}; + include {mime_types}; proxy_buffering off; proxy_http_version 1.1; @@ -51,9 +51,11 @@ proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; + log_format proxies_format '$request -> $proxy_host$uri st=$status sent=$body_bytes_sent'; + server {{ listen {nginx_port}; - access_log off; + access_log /dev/stderr proxies_format; autoindex on;''', file=out)