mirror of
https://github.com/YunoHost-Apps/searx_ynh.git
synced 2024-09-03 20:16:30 +02:00
Add config file
This commit is contained in:
parent
225243e9e6
commit
94a96fb3b4
4 changed files with 1494 additions and 18 deletions
1479
conf/settings.yml
Normal file
1479
conf/settings.yml
Normal file
File diff suppressed because it is too large
Load diff
|
@ -5,7 +5,7 @@
|
|||
#=================================================
|
||||
|
||||
# dependencies used by the app
|
||||
pkg_dependencies="git build-essential libxslt-dev python3-dev python3-venv python3-cffi python3-babel zlib1g-dev libffi-dev libssl-dev python3-lxml uwsgi uwsgi-plugin-python3"
|
||||
pkg_dependencies="git build-essential libxslt-dev python3-dev python3-venv python3-cffi python3-babel zlib1g-dev libffi-dev libssl-dev python3-lxml uwsgi uwsgi-plugin-python3 shellcheck"
|
||||
|
||||
#=================================================
|
||||
# UWSGI HELPERS
|
||||
|
|
|
@ -92,7 +92,10 @@ ynh_script_progression --message="Installing Searx..." --weight=2
|
|||
|
||||
python3 -m venv --system-site-packages "$final_path"
|
||||
set +u; source $final_path/bin/activate; set -u
|
||||
pip3 install -U pip
|
||||
pip3 install -U setuptools
|
||||
pip3 install -U wheel
|
||||
pip3 install -U pyyaml
|
||||
pip3 install --requirement $final_path/requirements-ynh.txt
|
||||
|
||||
#=================================================
|
||||
|
@ -100,16 +103,9 @@ pip3 install --requirement $final_path/requirements-ynh.txt
|
|||
#=================================================
|
||||
ynh_script_progression --message="Configuring Searx..." --weight=2
|
||||
|
||||
# Change instance name
|
||||
ynh_replace_string --match_string="instance_name : \"searx\"" --replace_string="instance_name : \"YunoSearx\"" --target_file="$final_path/searx/settings.yml"
|
||||
secret_key=$(ynh_string_random)
|
||||
|
||||
# Generate a secret key
|
||||
ynh_replace_string --match_string="secret_key : \"ultrasecretkey\"" --replace_string="secret_key : \"$(ynh_string_random)\"" --target_file="$final_path/searx/settings.yml"
|
||||
|
||||
# Modify the base_url parameter
|
||||
#ynh_replace_string --match_string="base_url : False" --replace_string="base_url : https://${domain}${path_url%/}/" --target_file="$final_path/searx/settings.yml"
|
||||
|
||||
ynh_store_file_checksum --file="$final_path/searx/settings.yml"
|
||||
ynh_add_config --template="../conf/settings.yml" --destination="$final_path/searx/settings.yml"
|
||||
|
||||
#=================================================
|
||||
# SET PERMISSIONS ON SEARX DIRECTORY
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Have a look to https://github.com/searx/searx/blob/master/requirements.txt
|
||||
certifi==2020.12.05
|
||||
babel==2.9.0
|
||||
babel==2.9.1
|
||||
flask-babel==2.0.0
|
||||
flask==1.1.2
|
||||
idna==2.10
|
||||
|
@ -10,11 +10,12 @@ pygments==2.8.0
|
|||
python-dateutil==2.8.1
|
||||
pyyaml==5.4.1
|
||||
requests[socks]==2.25.1
|
||||
cryptography==3.2
|
||||
langdetect==1.0.8
|
||||
# cryptography==3.2
|
||||
|
||||
# Additionnals requirements
|
||||
markupsafe>=0.23
|
||||
ndg-httpsclient>=0.4.2
|
||||
pyasn1>=0.2.3
|
||||
pyasn1-modules>=0.0.9
|
||||
#cffi>=1.12.1
|
||||
# # Additionnals requirements
|
||||
# markupsafe>=0.23
|
||||
# ndg-httpsclient>=0.4.2
|
||||
# pyasn1>=0.2.3
|
||||
# pyasn1-modules>=0.0.9
|
||||
## cffi>=1.12.1
|
||||
|
|
Loading…
Add table
Reference in a new issue