From 9416977d0aacdabbfb3f9d75a047264f65d559cd Mon Sep 17 00:00:00 2001 From: mh4ckt3mh4ckt1c4s Date: Mon, 13 Feb 2023 00:33:40 +0100 Subject: [PATCH] Add base_url customization for subfolder support --- conf/settings.yml | 2 +- scripts/install | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/settings.yml b/conf/settings.yml index 92c22fe..49c112e 100644 --- a/conf/settings.yml +++ b/conf/settings.yml @@ -69,7 +69,7 @@ server: # instance's environment (make buildenv) port: 8888 bind_address: "127.0.0.1" - base_url: false # Possible values: false or "https://example.org/location". + base_url: "__FULL_URL__" # Possible values: false or "https://example.org/location". limiter: false # rate limit the number of request on the instance, block some bots # If your instance owns a /etc/searxng/settings.yml file, then set the following diff --git a/scripts/install b/scripts/install index 9547264..6608600 100755 --- a/scripts/install +++ b/scripts/install @@ -147,6 +147,7 @@ pip3 install -e "$final_path" ynh_script_progression --message="Adding a configuration file..." --weight=1 secret_key=$(ynh_string_random) +full_url="https://$domain$path" ynh_add_config --template="../conf/settings.yml" --destination="$final_path/searx/settings.yml" # FIXME: this should be handled by the core in the future