feat: separate control and site domains #1

Merged
adam merged 1 commit from feat/separate-sites-url into main 2026-08-14 23:25:06 +00:00
Owner

Adds an optional sites_url configuration value so the Forge Pages control plane can remain on pages.git.freshost.net while owner sites are served from <owner>.git.freshost.net/<repo>.

  • keeps pages_url for OAuth login/callback and /deploy
  • uses sites_url for owner host routing and deployment URLs
  • scopes the OAuth session cookie to the shared sites domain
  • defaults sites_url to pages_url for backwards compatibility
  • validates that the control host can share cookies with the sites domain
  • adds configuration and routing tests

Validated with go test ./..., go vet ./..., and git diff --check.

Adds an optional `sites_url` configuration value so the Forge Pages control plane can remain on `pages.git.freshost.net` while owner sites are served from `<owner>.git.freshost.net/<repo>`. - keeps `pages_url` for OAuth login/callback and `/deploy` - uses `sites_url` for owner host routing and deployment URLs - scopes the OAuth session cookie to the shared sites domain - defaults `sites_url` to `pages_url` for backwards compatibility - validates that the control host can share cookies with the sites domain - adds configuration and routing tests Validated with `go test ./...`, `go vet ./...`, and `git diff --check`.
feat: separate control and site domains
Some checks failed
Test / test (pull_request) Has been cancelled
Test / test (push) Has been cancelled
48bedbe97b
adam merged commit 48bedbe97b into main 2026-08-14 23:25:06 +00:00
adam deleted branch feat/separate-sites-url 2026-08-14 23:25:06 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
adam/Forge-Pages!1
No description provided.