1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/searx_ynh.git synced 2024-09-03 20:16:30 +02:00

Fix sub path install

This commit is contained in:
ericgaspar 2021-01-16 15:11:28 +01:00
parent 29740d6d25
commit fac1891934
No known key found for this signature in database
GPG key ID: 574F281483054D44
5 changed files with 14 additions and 14 deletions

View file

@ -11,9 +11,9 @@ location __PATH__/ {
uwsgi_modifier1 30; uwsgi_modifier1 30;
uwsgi_pass unix:///var/run/__NAME__/app.socket; uwsgi_pass unix:///var/run/__NAME__/app.socket;
location __PATH__/searx/static/ { #location __PATH__/searx/static/ {
alias __FINALPATH__/searx/static/; # alias __FINALPATH__/searx/static/;
} #}
# Include SSOWAT user panel. # Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc; include conf.d/yunohost_panel.conf.inc;

View file

@ -92,7 +92,7 @@ fi
#================================================= #=================================================
ynh_script_progression --message="Reconfiguring Searx..." --weight=2 ynh_script_progression --message="Reconfiguring Searx..." --weight=2
ynh_replace_string --match_string="base_url : https://${old_domain}${old_path%/}/" --replace_string="base_url : https://${new_domain}${new_path%/}/" --target_file="$final_path/searx/settings.yml" #ynh_replace_string --match_string="base_url : https://${old_domain}${old_path%/}/" --replace_string="base_url : https://${new_domain}${new_path%/}/" --target_file="$final_path/searx/settings.yml"
#================================================= #=================================================
# GENERIC FINALISATION # GENERIC FINALISATION

View file

@ -108,7 +108,7 @@ ynh_replace_string --match_string="instance_name : \"searx\"" --replace_string="
ynh_replace_string --match_string="secret_key : \"ultrasecretkey\"" --replace_string="secret_key : \"$(ynh_string_random)\"" --target_file="$final_path/searx/settings.yml" 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 # 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_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_store_file_checksum --file="$final_path/searx/settings.yml"

View file

@ -137,7 +137,7 @@ ynh_replace_string --match_string="instance_name : \"searx\"" --replace_string="
ynh_replace_string --match_string="secret_key : \"ultrasecretkey\"" --replace_string="secret_key : \"$(ynh_string_random)\"" --target_file="$final_path/searx/settings.yml" 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 # 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_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_store_file_checksum --file="$final_path/searx/settings.yml"

View file

@ -1,16 +1,16 @@
# Have a look to https://github.com/searx/searx/blob/master/requirements.txt # Have a look to https://github.com/searx/searx/blob/master/requirements.txt
certifi==2020.6.20 certifi==2020.12.05
babel==2.7.0 babel==2.9.0
flask-babel==1.0.0 flask-babel==2.0.0
flask==1.1.2 flask==1.1.2
idna==2.10 idna==2.10
jinja2==2.11.1 jinja2==2.11.2
lxml==4.6.1 lxml==4.6.2
pygments==2.1.3 pygments==2.1.3
pyopenssl==19.1.0 pyopenssl==19.1.0
python-dateutil==2.8.0 python-dateutil==2.8.1
pyyaml==5.3.1 pyyaml==5.3.1
requests[socks]==2.24.0 requests[socks]==2.25.0
# Additionnals requirements # Additionnals requirements
markupsafe>=0.23 markupsafe>=0.23