mirror of
https://github.com/YunoHost-Apps/searxng_ynh.git
synced 2024-09-03 20:26:00 +02:00
Add base_url customization for subfolder support
This commit is contained in:
parent
aaa41fde5e
commit
9416977d0a
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue