Change default web port from 8080 to 2323

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
shuki
2026-03-06 06:27:16 +02:00
parent 907c77feb4
commit 220d30e515
5 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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 ""

View File

@@ -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="):

View File

@@ -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 = ""