From 51199740a04883d93b8658ae0b1ed9dce613ef8a Mon Sep 17 00:00:00 2001 From: Florent Date: Sun, 12 Nov 2023 21:19:31 +0100 Subject: [PATCH] Add missing port in conf + fix change_url --- conf/default.env | 1 + conf/nginx.conf | 6 ------ scripts/change_url | 2 ++ 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/conf/default.env b/conf/default.env index bb2300b..780ba01 100644 --- a/conf/default.env +++ b/conf/default.env @@ -8,3 +8,4 @@ GRIST_ANON_PLAYGROUND=false REDIS_URL=redis://localhost:6379/__REDIS_DB__ GRIST_DATA_DIR=__DATA_DIR__/docs/ TYPEORM_DATABASE=__DATA_DIR__/home.db +PORT=__PORT__ diff --git a/conf/nginx.conf b/conf/nginx.conf index 00ed049..5445910 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -13,12 +13,6 @@ location __PATH__/ { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; - location /auth/login { - # FIXME isn't there any way to specify the - # URL to redirect to after being sso'ed? - return 301 /yunohost/sso; - } - # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; } diff --git a/scripts/change_url b/scripts/change_url index 122fceb..7054eea 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -26,6 +26,8 @@ ynh_script_progression --message="Updating NGINX web server configuration..." -- ynh_change_url_nginx_config ynh_script_progression --message="Updating env configuration file..." --weight=1 +domain="$new_domain" +path="$new_path" ynh_add_config --template="default.env" --destination="$install_dir/default.env" #=================================================