Compare commits

...

2 Commits

Author SHA1 Message Date
1e4848eee6
rpi4: fix searxng auth 2024-06-29 18:49:32 -04:00
818f1b6365
rpi4: fix searxng redirect 2024-06-29 18:48:54 -04:00

View File

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