1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/searx_ynh.git synced 2024-09-03 20:16:30 +02:00
This commit is contained in:
ericgaspar 2021-11-22 22:43:53 +01:00
parent 5ec3836cf3
commit 197fc7eaf2
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 1 additions and 7 deletions

View file

@ -1,11 +1,6 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ { location __PATH__/ {
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
uwsgi_param SCRIPT_NAME '__PATH_NO_ROOT__'; uwsgi_param SCRIPT_NAME '__PATH_NO_ROOT__';
include uwsgi_params; include uwsgi_params;
uwsgi_modifier1 30; uwsgi_modifier1 30;

View file

@ -34,8 +34,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
#================================================= #=================================================
ynh_script_progression --message="Validating restoration parameters..." --weight=2 ynh_script_progression --message="Validating restoration parameters..." --weight=2
test ! -d $final_path \ test ! -d $final_path || ynh_die --message="There is already a directory: $final_path "
|| ynh_die --message="There is already a directory: $final_path "
#================================================= #=================================================
# STANDARD RESTORE STEPS # STANDARD RESTORE STEPS