From 44edc9256932961f5fd3c0778da009c493d9ce35 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Thu, 9 Apr 2020 14:28:34 +0200 Subject: [PATCH] [fix] morty: PUBLIC_URL_PATH_MORTY needs trailing slash Signed-off-by: Markus Heiser --- .config.sh | 2 +- utils/morty.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.config.sh b/.config.sh index f4e6273c4..835bfecf4 100644 --- a/.config.sh +++ b/.config.sh @@ -41,7 +41,7 @@ fi # morty listen address # MORTY_LISTEN="127.0.0.1:3000" -# PUBLIC_URL_PATH_MORTY="/morty" +# PUBLIC_URL_PATH_MORTY="/morty/" # system services # --------------- diff --git a/utils/morty.sh b/utils/morty.sh index 34d792dbe..2aee0ac97 100755 --- a/utils/morty.sh +++ b/utils/morty.sh @@ -15,7 +15,7 @@ in_container && lxc_set_suite_env # ---------------------------------------------------------------------------- MORTY_LISTEN="${MORTY_LISTEN:-127.0.0.1:3000}" -PUBLIC_URL_PATH_MORTY="${PUBLIC_URL_PATH_MORTY:-/morty}" +PUBLIC_URL_PATH_MORTY="${PUBLIC_URL_PATH_MORTY:-/morty/}" SEARX_URL="${PUBLIC_URL:-http://$(uname -n)/searx}" PUBLIC_URL_MORTY="$(echo "$SEARX_URL" | sed -e's,^\(.*://[^/]*\).*,\1,g')${PUBLIC_URL_PATH_MORTY}"