feat: add wildcard subdomain routing and preview support #2

Merged
radu merged 4 commits from add-insecure-mode into main 2026-07-21 08:07:15 +00:00
Owner

Adds wildcard subdomain routing and preview branch support to the git-pages service:

docker-compose.yml:

  • PAGES_FEATURES=preview — enables the preview feature flag (required alongside preview-domain in config)
  • HostRegexp Traefik labels — routes *.pages.martin.md and *.preview.pages.martin.md to git-pages, since it uses subdomain-based routing (<user>.pages.martin.md/<project>/)

config.toml:

  • preview-domain = "preview.pages.martin.md" — serves preview branches at <user>.preview.pages.martin.md/<project>@<PR>/
  • authorization = "forgejo" — required alongside preview-domain; CI authenticates via Forge-Authorization header, verified against the Forgejo API
Adds wildcard subdomain routing and preview branch support to the git-pages service: **docker-compose.yml:** - `PAGES_FEATURES=preview` — enables the preview feature flag (required alongside `preview-domain` in config) - `HostRegexp` Traefik labels — routes `*.pages.martin.md` and `*.preview.pages.martin.md` to git-pages, since it uses subdomain-based routing (`<user>.pages.martin.md/<project>/`) **config.toml:** - `preview-domain = "preview.pages.martin.md"` — serves preview branches at `<user>.preview.pages.martin.md/<project>@<PR>/` - `authorization = "forgejo"` — required alongside `preview-domain`; CI authenticates via `Forge-Authorization` header, verified against the Forgejo API
radu changed title from Enable PAGES_INSECURE and expose port 3000 for CI notification to feat: add wildcard subdomain routing and preview support 2026-07-21 08:06:24 +00:00
radu merged commit 738a10b181 into main 2026-07-21 08:07:15 +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
homelab/dc-git-pages!2
No description provided.