diff options
| author | Xe Iaso <me@xeiaso.net> | 2023-09-24 14:16:16 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2023-09-24 14:16:16 -0400 |
| commit | 13f83404224da982ccda38e265b8a11e87970527 (patch) | |
| tree | 503b6fc06f91e96c088fbdc872dc5f229b78d0a5 | |
| parent | 9fc90aeb4fb313ff8d6f9a8f42f20221ace6e386 (diff) | |
| download | xesite-13f83404224da982ccda38e265b8a11e87970527.tar.xz xesite-13f83404224da982ccda38e265b8a11e87970527.zip | |
xesite: update default variables
Signed-off-by: Xe Iaso <me@xeiaso.net>
| -rw-r--r-- | xesite/github.go | 2 | ||||
| -rw-r--r-- | xesite/main.go | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/xesite/github.go b/xesite/github.go index d74bc0b..054108f 100644 --- a/xesite/github.go +++ b/xesite/github.go @@ -29,6 +29,8 @@ type GitHubWebhook struct { } func (gh *GitHubWebhook) ServeHTTP(w http.ResponseWriter, r *http.Request) { + webhookCount.Add(1) + if r.Header.Get("X-GitHub-Event") != "push" { slog.Info("not a push event", "event", r.Header.Get("X-GitHub-Event")) } diff --git a/xesite/main.go b/xesite/main.go index 78558d3..2d8923f 100644 --- a/xesite/main.go +++ b/xesite/main.go @@ -24,7 +24,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") - siteURL = flag.String("site-url", "https://kaine.shark-harmonic.ts.net/", "URL to use for the site") + siteURL = flag.String("site-url", "https://xeiaso.net/", "URL to use for the site") ) func main() { |
