Skip to content

Fix setup port pollution, PostgreSQL sslmode fallback, and setup page behavior#1677

Open
CatKeee wants to merge 4 commits intoWei-Shaw:mainfrom
CatKeee:feat/manual-deploy-port-logic
Open

Fix setup port pollution, PostgreSQL sslmode fallback, and setup page behavior#1677
CatKeee wants to merge 4 commits intoWei-Shaw:mainfrom
CatKeee:feat/manual-deploy-port-logic

Conversation

@CatKeee
Copy link
Copy Markdown

@CatKeee CatKeee commented Apr 15, 2026

Description

Changes

  • Fix server.port pollution during setup

    • Prevent the frontend from injecting the browser port (e.g., 80/443) into backend configuration
    • The backend now determines the listening port based on its own startup configuration
  • Add fallback for PostgreSQL sslmode=prefer

    • If the current driver does not support prefer, automatically fallback to sslmode=disable
    • Applies to both startup and setup database connections to prevent initialization failures
  • Fix /setup page behavior

    • When the backend returns needs_setup=false, the frontend will:
      • Automatically redirect to the homepage
      • Prevent manual access to /setup
    • Avoids confusion where users think the system is not initialized

Notes

  • No breaking changes
  • Behavior is backward compatible with existing deployments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant