1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cesium_ynh.git synced 2024-09-03 18:06:25 +02:00

change syntax nginx_conf

This commit is contained in:
Robles Rodolphe 2020-06-04 00:06:50 +02:00
parent b1962b33f7
commit 4efd37ab8f
2 changed files with 3 additions and 5 deletions

View file

@ -1,7 +1,8 @@
location YNH_WWW_PATH { #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
# Path to source # Path to source
alias YNH_WWW_ALIAS ; alias __FINALPATH__/ ;
# Include SSOWAT user panel. # Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc; include conf.d/yunohost_panel.conf.inc;

View file

@ -82,9 +82,6 @@ ynh_script_progression --message="Configuring nginx web server..." --time --weig
# Create a dedicated nginx config # Create a dedicated nginx config
ynh_add_nginx_config ynh_add_nginx_config
# Modify Nginx configuration file and copy it to Nginx conf directory
ynh_replace_string --match_string="YNH_WWW_PATH" --replace_string="$path_url" --target_file="$final_path/nginx.conf"
ynh_replace_string --match_string='YNH_WWW_ALIAS' --replace_string='$final_path' --target_file="$final_path/nginx.conf"
if [ "$path_url" != "/" ] if [ "$path_url" != "/" ]
then then