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:
parent
29740d6d25
commit
fac1891934
5 changed files with 14 additions and 14 deletions
|
@ -11,10 +11,10 @@ location __PATH__/ {
|
|||
uwsgi_modifier1 30;
|
||||
uwsgi_pass unix:///var/run/__NAME__/app.socket;
|
||||
|
||||
location __PATH__/searx/static/ {
|
||||
alias __FINALPATH__/searx/static/;
|
||||
}
|
||||
|
||||
#location __PATH__/searx/static/ {
|
||||
# alias __FINALPATH__/searx/static/;
|
||||
#}
|
||||
|
||||
# Include SSOWAT user panel.
|
||||
include conf.d/yunohost_panel.conf.inc;
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ fi
|
|||
#=================================================
|
||||
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
|
||||
|
|
|
@ -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"
|
||||
|
||||
# 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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
# 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"
|
||||
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
# Have a look to https://github.com/searx/searx/blob/master/requirements.txt
|
||||
certifi==2020.6.20
|
||||
babel==2.7.0
|
||||
flask-babel==1.0.0
|
||||
certifi==2020.12.05
|
||||
babel==2.9.0
|
||||
flask-babel==2.0.0
|
||||
flask==1.1.2
|
||||
idna==2.10
|
||||
jinja2==2.11.1
|
||||
lxml==4.6.1
|
||||
jinja2==2.11.2
|
||||
lxml==4.6.2
|
||||
pygments==2.1.3
|
||||
pyopenssl==19.1.0
|
||||
python-dateutil==2.8.0
|
||||
python-dateutil==2.8.1
|
||||
pyyaml==5.3.1
|
||||
requests[socks]==2.24.0
|
||||
requests[socks]==2.25.0
|
||||
|
||||
# Additionnals requirements
|
||||
markupsafe>=0.23
|
||||
|
|
Loading…
Reference in a new issue