diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-02-20 16:17:38 -0500 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-02-20 16:17:38 -0500 |
| commit | c09361b9e018d4bd759a1345b2c176e63c73519a (patch) | |
| tree | 6964154f1ea56f2b1285331a42fd9f6f0b20144d /cmd | |
| parent | 40b1165ad254cb030f6e2891c132b1ab89042b2f (diff) | |
| download | xesite-c09361b9e018d4bd759a1345b2c176e63c73519a.tar.xz xesite-c09361b9e018d4bd759a1345b2c176e63c73519a.zip | |
redirect christine.website to xeiaso.net
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/xesite/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/xesite/main.go b/cmd/xesite/main.go index 0f8f060..feae8cc 100644 --- a/cmd/xesite/main.go +++ b/cmd/xesite/main.go @@ -26,7 +26,7 @@ var ( gitBranch = flag.String("git-branch", "main", "Git branch to clone") gitRepo = flag.String("git-repo", "https://github.com/Xe/site", "Git repository to clone") githubSecret = flag.String("github-secret", "", "GitHub secret to use for webhooks") - internalAPIBind = flag.String("internal-api-bind", ":3001", "Port to listen on for the internal API") + internalAPIBind = flag.String("internal-api-bind", ":3001", "Port to listen on for the internal API") miToken = flag.String("mi-token", "", "Token to use for the mi API") patreonSaasProxyURL = flag.String("patreon-saasproxy-url", "http://xesite-patreon-saasproxy.flycast", "URL to use for the patreon saasproxy") siteURL = flag.String("site-url", "https://xeiaso.net/", "URL to use for the site") @@ -112,6 +112,7 @@ func main() { h = internal.CacheHeader(h) h = internal.AcceptEncodingMiddleware(h) h = internal.RefererMiddleware(h) + h = internal.DomainRedirect(h, *devel) slog.Info("starting server", "bind", *bind) log.Fatal(http.Serve(ln, h)) |
