rpi4: fix searxng issues
rpi4: fix searxng redirect rpi4: fix searxng auth
This commit is contained in:
parent
765547b9f7
commit
5f8740c206
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user