Changeset - 1cbb52eac89b
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 8 months ago 2024-05-13 02:32:50
drewp@bigasterisk.com
nginx log what server/path you proxy to
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/light9/homepage/write_config.py
Show inline comments
 
@@ -34,7 +34,7 @@ def main():
 
worker_processes 1;
 

	
 
daemon off;
 
error_log /tmp/light9_homepage.err;
 
error_log /dev/stderr;
 
pid /dev/null;
 

	
 
events {{
 
@@ -51,9 +51,11 @@ http {{
 
  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)
 

	
0 comments (0 inline, 0 general)