services/searxng: don't hardcode base_url and traefik rule

This commit is contained in:
2025-08-31 16:06:07 -07:00
parent fe51ee19f0
commit 08f1d79c69

View File

@@ -42,7 +42,7 @@ in
server = {
port = searxngPort;
bind_address = "127.0.0.1";
base_url = "https://app-01.tail755c5.ts.net/search/";
base_url = "https://${config.networking.hostName}.tail755c5.ts.net/search/";
public_instance = false;
method = "POST";
secret_key = "testkey";
@@ -60,7 +60,7 @@ in
services.traefik.dynamicConfigOptions = {
http.routers.searxng = {
entrypoints = [ "websecure" ];
rule = "Host(`app-01.tail755c5.ts.net`) && PathPrefix(`/search`)";
rule = "Host(`${config.networking.hostName}.tail755c5.ts.net`) && PathPrefix(`/search`)";
tls = true;
service = "searxng";
};