Changeset - e9dc435cc946
[Not reviewed]
default
0 2 0
drewp@bigasterisk.com - 20 months ago 2023-05-27 22:44:16
drewp@bigasterisk.com
no proxy_buffering even on vitejs resource pages, since our working dir is non-writable
2 files changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
bin/homepage
Show inline comments
 
@@ -16,12 +16,14 @@ events {
 
  worker_connections 1024;
 
}
 

	
 
http {
 
 include $ROOT/light9/web/mime.types;
 
 
 
 proxy_buffering off;
 

	
 
 server {
 
  access_log off;
 
  autoindex on;
 

	
 
  include "/tmp/light9_nginx_routes.conf";
 

	
light9/homepage/write_config.py
Show inline comments
 
@@ -36,15 +36,12 @@ def main():
 

	
 
          # for websocket
 
          proxy_http_version 1.1;
 
          proxy_set_header Upgrade $http_upgrade;
 
          proxy_set_header Connection "upgrade";
 
          proxy_set_header Host $host;
 

	
 
          proxy_buffering off;
 

	
 
        }}
 
        location /{path}/ {{
 
          # vite has 'base' to deal with the /{path}/ part of the request
 
          proxy_pass {viteServer}; 
 
        }}
 

	
0 comments (0 inline, 0 general)