Changeset - 17b268d2b7f3
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 3 years ago 2022-05-22 10:04:18
drewp@bigasterisk.com
ws fix
1 file changed with 9 insertions and 8 deletions:
0 comments (0 inline, 0 general)
bin/homepageConfig
Show inline comments
 
@@ -24,26 +24,27 @@ def location(path, server, viteServer):
 
    }}
 

	
 
    location /{path}/api/ {{
 
      # just the tail part for services
 
      rewrite ^/{path}/api(/.*) $1 break;
 
      proxy_pass {server}; 
 

	
 
      # 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}; 
 
    }}
 

	
 
# vite seems to work without this old section-- hopefully other services will too!
 
    #   # 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;
 
    """)
 

	
 

	
 
for role, server in sorted(graph.predicate_objects(netHome)):
 
    if not server.startswith('http') or role == L9['webServer']:
 
        continue
0 comments (0 inline, 0 general)