diff --git a/conf/nginx.conf b/conf/nginx.conf index 3df721e..7a39d49 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -6,7 +6,7 @@ location __PATH__/ { proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass http://localhost:__PORT__/__PATH__; + proxy_pass http://localhost:__PORT____PATH__; # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; diff --git a/scripts/change_url b/scripts/change_url index d49c586..3977f24 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -50,7 +50,7 @@ then new_next_path=$new_path fi - ynh_replace_string --match_string="module.exports = { basePath: '$old_path', };" --replace_string="module.exports = { basePath: '$new_path', };" + ynh_replace_string --match_string="module.exports = { basePath: '$old_path', };" --replace_string="module.exports = { basePath: '$new_path', };" --target_file="$install_dir/next.config.js" fi #=================================================