services/searxng: don't hardcode base_url and traefik rule
This commit is contained in:
@@ -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";
|
||||
};
|
||||
|
Reference in New Issue
Block a user