From 42778943a41bde829d8d199ccb05c5cf6cf8eb83 Mon Sep 17 00:00:00 2001 From: Neko Nekowazarashi Date: Mon, 29 May 2023 21:57:57 +0700 Subject: [PATCH] perbaiki sub-jalur --- conf/nginx.conf | 2 +- scripts/change_url | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 #=================================================