diff --git a/bin/gniza b/bin/gniza index ca8f5f9..71130f8 100755 --- a/bin/gniza +++ b/bin/gniza @@ -418,7 +418,7 @@ if [[ "$SUBCOMMAND" == "web" ]]; then systemctl enable gniza-web systemctl restart gniza-web echo "GNIZA web service installed and started." - echo "Access the dashboard at http://$(hostname -I | awk '{print $1}'):8080" + echo "Access the dashboard at http://$(hostname -I | awk '{print $1}'):2323" ;; remove-service) systemctl stop gniza-web 2>/dev/null || true diff --git a/etc/gniza-web.service b/etc/gniza-web.service index 5b78bf4..3319b69 100644 --- a/etc/gniza-web.service +++ b/etc/gniza-web.service @@ -4,7 +4,7 @@ After=network.target [Service] Type=simple -ExecStart=/usr/bin/python3 -m tui --web --host 0.0.0.0 --port 8080 +ExecStart=/usr/bin/python3 -m tui --web --host 0.0.0.0 --port 2323 WorkingDirectory=/usr/local/gniza Environment=GNIZA_DIR=/usr/local/gniza Environment=PYTHONPATH=/usr/local/gniza diff --git a/scripts/install.sh b/scripts/install.sh index 068b625..c7cb23c 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -199,7 +199,7 @@ echo " Work dir: $WORK_DIR" echo "" if [ "${WEB_INSTALLED:-}" = "yes" ]; then echo "${C_GREEN}Web Dashboard:${C_RESET}" - echo " URL: http://$(hostname -I 2>/dev/null | awk '{print $1}'):8080" + echo " URL: http://$(hostname -I 2>/dev/null | awk '{print $1}'):2323" echo " User: $WEB_USER" echo " Password: $WEB_PASS" echo "" diff --git a/tui/__main__.py b/tui/__main__.py index bfcafe2..f7a03b5 100644 --- a/tui/__main__.py +++ b/tui/__main__.py @@ -46,7 +46,7 @@ def _get_local_ip() -> str: def _parse_web_args(): """Parse --port and --host from sys.argv.""" - port = 8080 + port = 2323 host = "0.0.0.0" for i, arg in enumerate(sys.argv): if arg.startswith("--port="): diff --git a/tui/models.py b/tui/models.py index 55284e3..6e38b50 100644 --- a/tui/models.py +++ b/tui/models.py @@ -203,7 +203,7 @@ class AppSettings: ssh_retries: str = "3" rsync_extra_opts: str = "" work_dir: str = "/usr/local/gniza/workdir" - web_port: str = "8080" + web_port: str = "2323" web_host: str = "0.0.0.0" web_api_key: str = ""