From e8ce642b8145fbe90e16edd869b862b989aeec68 Mon Sep 17 00:00:00 2001 From: "Claude Sonnet 4.5" Date: Sun, 8 Feb 2026 12:13:42 +0000 Subject: [PATCH] Update default port from 8088 to 9000 - Update .env.embedded PORT variable - Update README.md documentation - Update deploy/README.md port references - Update scripts/deploy-embedded.sh kiosk URLs - Update src/directory/bootstrap.rs login URLs - Update src/core/package_manager/setup/directory_setup.rs auth callback URLs Co-Authored-By: Claude Sonnet 4.5 --- .env.embedded | 2 +- README.md | 2 +- deploy/README.md | 4 ++-- scripts/deploy-embedded.sh | 4 ++-- src/core/package_manager/setup/directory_setup.rs | 4 ++-- src/directory/bootstrap.rs | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.env.embedded b/.env.embedded index 2555996f7..6a8c912d1 100644 --- a/.env.embedded +++ b/.env.embedded @@ -3,7 +3,7 @@ # Server HOST=0.0.0.0 -PORT=8088 +PORT=9000 RUST_LOG=info # Database (SQLite for embedded, no PostgreSQL needed) diff --git a/README.md b/README.md index 921972cd3..d4508d2bc 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ On first run, botserver automatically: - Installs required components (PostgreSQL, S3 storage, Redis cache, LLM) - Sets up database with migrations - Downloads AI models -- Starts HTTP server at `http://localhost:8088` +- Starts HTTP server at `http://localhost:9000` ### Command-Line Options diff --git a/deploy/README.md b/deploy/README.md index f59097029..536d0d9dc 100644 --- a/deploy/README.md +++ b/deploy/README.md @@ -123,7 +123,7 @@ kubectl rollout restart deployment/botserver -n generalbots ```bash # Find process using port -lsof -ti:8088 | xargs kill -9 +lsof -ti:9000 | xargs kill -9 lsof -ti:3000 | xargs kill -9 ``` @@ -193,7 +193,7 @@ kubectl logs -f deployment/botserver -n generalbots ```bash # Check server health -curl http://localhost:8088/health +curl http://localhost:9000/health # Check botui health curl http://localhost:3000/health diff --git a/scripts/deploy-embedded.sh b/scripts/deploy-embedded.sh index 8c5b233b8..8c34d0b65 100644 --- a/scripts/deploy-embedded.sh +++ b/scripts/deploy-embedded.sh @@ -161,7 +161,7 @@ Type=simple User=pi Environment=DISPLAY=:0 ExecStartPre=/bin/sleep 5 -ExecStart=/usr/bin/chromium-browser --kiosk --noerrdialogs --disable-infobars --disable-session-crashed-bubble --app=http://localhost:8088/embedded/ +ExecStart=/usr/bin/chromium-browser --kiosk --noerrdialogs --disable-infobars --disable-session-crashed-bubble --app=http://localhost:9000/embedded/ Restart=always RestartSec=10 @@ -498,7 +498,7 @@ echo "View logs:" echo " ssh $TARGET_HOST 'sudo journalctl -u botserver -f'" echo "" if [ "$WITH_UI" = true ]; then - echo "Access UI at: http://$TARGET_HOST:8088/embedded/" + echo "Access UI at: http://$TARGET_HOST:9000/embedded/" fi if [ "$WITH_LLAMA" = true ]; then echo "" diff --git a/src/core/package_manager/setup/directory_setup.rs b/src/core/package_manager/setup/directory_setup.rs index 28b107f1f..875416590 100644 --- a/src/core/package_manager/setup/directory_setup.rs +++ b/src/core/package_manager/setup/directory_setup.rs @@ -357,12 +357,12 @@ impl DirectorySetup { .bearer_auth(self.admin_token.as_ref().unwrap_or(&String::new())) .json(&json!({ "name": app_name, - "redirectUris": [redirect_uri, "http://localhost:3000/auth/callback", "http://localhost:8088/auth/callback"], + "redirectUris": [redirect_uri, "http://localhost:3000/auth/callback", "http://localhost:9000/auth/callback"], "responseTypes": ["OIDC_RESPONSE_TYPE_CODE"], "grantTypes": ["OIDC_GRANT_TYPE_AUTHORIZATION_CODE", "OIDC_GRANT_TYPE_REFRESH_TOKEN", "OIDC_GRANT_TYPE_PASSWORD"], "appType": "OIDC_APP_TYPE_WEB", "authMethodType": "OIDC_AUTH_METHOD_TYPE_POST", - "postLogoutRedirectUris": ["http://localhost:8080", "http://localhost:3000", "http://localhost:8088"], + "postLogoutRedirectUris": ["http://localhost:8080", "http://localhost:3000", "http://localhost:9000"], "accessTokenType": "OIDC_TOKEN_TYPE_BEARER", "devMode": true, })) diff --git a/src/directory/bootstrap.rs b/src/directory/bootstrap.rs index df6d2ec9f..bc496dc3f 100644 --- a/src/directory/bootstrap.rs +++ b/src/directory/bootstrap.rs @@ -250,7 +250,7 @@ fn save_setup_credentials(result: &BootstrapResult) { ║ Password: {:<46}║ ║ Email: {:<46}║ ║ ║ -║ 🌐 LOGIN NOW: http://localhost:8088/suite/login ║ +║ 🌐 LOGIN NOW: http://localhost:9000/suite/login ║ ║ ║ ╚════════════════════════════════════════════════════════════╝ @@ -313,7 +313,7 @@ fn print_bootstrap_credentials(result: &BootstrapResult) { println!("║{:^60}║", ""); println!("║ {:56}║", "🌐 LOGIN NOW:"); println!("║{:^60}║", ""); - println!("║ {:56}║", "http://localhost:8088/suite/login"); + println!("║ {:56}║", "http://localhost:9000/suite/login"); println!("║{:^60}║", ""); println!("╠{}╣", separator); println!("║{:^60}║", "");