|
@@ -15,6 +15,7 @@ in_container && lxc_set_suite_env
|
|
# ----------------------------------------------------------------------------
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
|
PUBLIC_URL="${PUBLIC_URL:-http://$(uname -n)/searx}"
|
|
PUBLIC_URL="${PUBLIC_URL:-http://$(uname -n)/searx}"
|
|
|
|
+PUBLIC_HOST="${PUBLIC_HOST:-$(echo "$PUBLIC_URL" | sed -e 's/[^/]*\/\/\([^@]*@\)\?\([^:/]*\).*/\2/')}"
|
|
PUBLIC_URL_PATH_MORTY="${PUBLIC_URL_PATH_MORTY:-/morty}"
|
|
PUBLIC_URL_PATH_MORTY="${PUBLIC_URL_PATH_MORTY:-/morty}"
|
|
PUBLIC_URL_MORTY="$(echo "$PUBLIC_URL" | sed -e's,^\(.*://[^/]*\).*,\1,g')${PUBLIC_URL_PATH_MORTY}"
|
|
PUBLIC_URL_MORTY="$(echo "$PUBLIC_URL" | sed -e's,^\(.*://[^/]*\).*,\1,g')${PUBLIC_URL_PATH_MORTY}"
|
|
|
|
|
|
@@ -378,7 +379,6 @@ EOF
|
|
return 0
|
|
return 0
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
enable_debug() {
|
|
enable_debug() {
|
|
warn_msg "Do not enable debug in production enviroments!!"
|
|
warn_msg "Do not enable debug in production enviroments!!"
|
|
info_msg "Enabling debug option needs to reinstall systemd service!"
|
|
info_msg "Enabling debug option needs to reinstall systemd service!"
|