Fix nginx config
This commit is contained in:
parent
04f94271b4
commit
7a1958ebd3
@ -98,12 +98,9 @@ then
|
|||||||
# uwsgi_param is only needed for non-root installation
|
# uwsgi_param is only needed for non-root installation
|
||||||
ynh_replace_string "uwsgi_param " "#uwsgi_param " "$finalnginxconf"
|
ynh_replace_string "uwsgi_param " "#uwsgi_param " "$finalnginxconf"
|
||||||
ynh_replace_string "uwsgi_modifier1 " "#uwsgi_modifier1 " "$finalnginxconf"
|
ynh_replace_string "uwsgi_modifier1 " "#uwsgi_modifier1 " "$finalnginxconf"
|
||||||
|
|
||||||
ynh_store_file_checksum "$finalnginxconf"
|
|
||||||
else
|
|
||||||
# add rewrite for alias_traversal protection
|
|
||||||
ynh_replace_string "^#sub_path_only" "" "../conf/nginx.conf"
|
|
||||||
fi
|
fi
|
||||||
|
ynh_store_file_checksum "$finalnginxconf"
|
||||||
|
systemctl reload nginx
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DEDICATED USER
|
# CREATE DEDICATED USER
|
||||||
|
@ -118,13 +118,9 @@ then
|
|||||||
# uwsgi_param is only needed for non-root installation
|
# uwsgi_param is only needed for non-root installation
|
||||||
ynh_replace_string "uwsgi_param " "#uwsgi_param " "$finalnginxconf"
|
ynh_replace_string "uwsgi_param " "#uwsgi_param " "$finalnginxconf"
|
||||||
ynh_replace_string "uwsgi_modifier1 " "#uwsgi_modifier1 " "$finalnginxconf"
|
ynh_replace_string "uwsgi_modifier1 " "#uwsgi_modifier1 " "$finalnginxconf"
|
||||||
|
|
||||||
ynh_store_file_checksum "$finalnginxconf"
|
|
||||||
else
|
|
||||||
# add rewrite for alias_traversal protection
|
|
||||||
ynh_replace_string "^#sub_path_only" "" "../conf/nginx.conf"
|
|
||||||
fi
|
fi
|
||||||
|
ynh_store_file_checksum "$finalnginxconf"
|
||||||
|
systemctl reload nginx
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DEDICATED USER
|
# CREATE DEDICATED USER
|
||||||
|
Loading…
x
Reference in New Issue
Block a user