repos
/ orchard main

orchard

mirror

Every site I host, in one repo, along with the Cloudflare Tunnel and Caddy that front them. It's all Go, Vite, and SQLite, and it runs on a desktop at home with nothing listening on an inbound port.

blogbuncaddycloudflare-tunneldockergogolanghomelabhtml-templatemonorepoself-hostedseosqlitestatic-sitetypstuptime-monitoringviteweb-analytics

798 B · 24 lines · Go Raw History
 1package main
 2
 3import "strings"
 4
 5// Identity is hardcoded. Only the secrets come from the environment, and this
 6// site reads two: the ntfy publish token and, optionally, the cookie domain.
 7const (
 8	baseURL    = "https://auth.bythewood.me"
 9	siteName   = "Auth"
10	authorName = "Isaac Bythewood"
11	githubUser = "overshard"
12
13	// Must match the first hostname label, like every other source label.
14	selfSource = "auth"
15
16	// Identity, not a credential: this id is in the page source by design.
17	analyticsID = "75a24b68-7734-4337-bb7a-9265f219f397"
18)
19
20// Staging is true on any hostname but the real one, and keeps it out of search results.
21var Staging = !strings.HasSuffix(baseURL, "//auth.bythewood.me")
22
23const sourceURL = "https://github.com/" + githubUser + "/orchard/tree/main/sites/auth.bythewood.me"