Compare commits

...

2 Commits

Author SHA1 Message Date
ef85e642b6
rpi4: fix searxng auth 2024-06-29 18:51:49 -04:00
d9a4339ec3
rpi4: fix searxng redirect 2024-06-29 18:51:48 -04:00

View File

@ -115,12 +115,16 @@
# octoprint (proxy_addr is 10.10.1.8) # octoprint (proxy_addr is 10.10.1.8)
"print.protogen.io" = mkProxy { auth = true; upstream = "http://10.10.1.8:80"; }; "print.protogen.io" = mkProxy { auth = true; upstream = "http://10.10.1.8:80"; };
# searx auth 8088 (none for /favicon.ico, /autocompleter, /opensearch.xml) # searx auth 8088 (none for /favicon.ico, /autocompleter, /opensearch.xml)
"search.protogen.io".locations."/".return = "302 https://searx.protogen.io$request_uri";
"searx.protogen.io" = let "searx.protogen.io" = let
port = 8088; port = 8088;
in mkProxy { auth = true; inherit port; extraConfig = { in mkProxy { auth = true; inherit port; extraConfig = {
locations = lib.genAttrs [ "/favicon.ico" "/autocompleter" "/opensearch.xml" ] (attr: { locations = lib.genAttrs [ "/favicon.ico" "/autocompleter" "/opensearch.xml" ] (attr: {
basicAuthFile = lib.mkForce null; proxyPass = "http://localhost:${builtins.toString port}";
basicAuth = lib.mkForce { }; proxyWebsockets = true;
extraConfig = ''
auth_basic off;
'';
}); });
};}; };};
# nbt.sh alias proot.link 8090 # nbt.sh alias proot.link 8090