diff --git a/ct/netvisor.sh b/ct/netvisor.sh index 77d5a96da..95355bebf 100644 --- a/ct/netvisor.sh +++ b/ct/netvisor.sh @@ -52,7 +52,7 @@ function update_script() { cp /opt/netvisor.env.bak /opt/netvisor/.env LOCAL_IP="$(hostname -I | awk '{print $1}')" if ! grep -q "PUBLIC_URL"; then - sed -i "\|_PATH=|a\NETVISOR_SERVER_PUBLIC_URL=http://${LOCAL_IP}:60072" /opt/netvisor/.env + sed -i "\|_PATH=|a\NETVISOR_PUBLIC_URL=http://${LOCAL_IP}:60072" /opt/netvisor/.env fi sed -i 's|_TARGET=.*$|_URL=http://127.0.0.1:60072|' /opt/netvisor/.env diff --git a/install/netvisor-install.sh b/install/netvisor-install.sh index 5d432035d..5d6f2cd83 100644 --- a/install/netvisor-install.sh +++ b/install/netvisor-install.sh @@ -54,7 +54,7 @@ cat </opt/netvisor/.env ### - SERVER NETVISOR_DATABASE_URL=postgresql://$PG_DB_USER:$PG_DB_PASS@localhost:5432/$PG_DB_NAME NETVISOR_WEB_EXTERNAL_PATH="/opt/netvisor/ui/build" -NETVISOR_SERVER_PUBLIC_URL=http://${LOCAL_IP}:60072 +NETVISOR_PUBLIC_URL=http://${LOCAL_IP}:60072 NETVISOR_SERVER_PORT=60072 NETVISOR_LOG_LEVEL=info NETVISOR_INTEGRATED_DAEMON_URL=http://127.0.0.1:60073