Fix nginx config

pull/6/head
Josué Tille 6 years ago
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…
Cancel
Save