diff --git a/bin/homepageConfig b/bin/homepageConfig --- a/bin/homepageConfig +++ b/bin/homepageConfig @@ -38,8 +38,21 @@ for role, server in sorted(graph.predica if not path: continue server = server.rstrip('/') + if 'collector' in path: continue location(path, server) +print(''' + + location /collector/metrics { + rewrite "/collector(/.*)" "$1" break; + proxy_pass http://localhost:8202; + } + location /collector/ { + proxy_pass http://localhost:8302; + } + +''') + showPath = showconfig.showUri().split('/', 3)[-1] root = showconfig.root()[:-len(showPath)].decode('ascii') print(f"""