diff --git a/Dockerfile b/Dockerfile index ca3962c..220890a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /webhooks . FROM gcr.io/distroless/static-debian12:nonroot COPY --from=build /webhooks /webhooks -ENV LISTEN=:8080 SMTP_ADDR=172.17.0.1:25 MAIL_FROM=no-reply@dixon.cx PUBLIC_HOST=webhooks.dixon.cx +ENV LISTEN=:8080 SMTP_ADDR=172.17.0.1:25 MAIL_FROM=no-reply@dixon.cx PUBLIC_HOST=webhook.me.uk EXPOSE 8080 HEALTHCHECK --interval=30s --timeout=3s --start-period=5s CMD ["/webhooks", "-check"] ENTRYPOINT ["/webhooks"] diff --git a/PARSER_PROMPT.md b/PARSER_PROMPT.md index 11b680c..66d4dd3 100644 --- a/PARSER_PROMPT.md +++ b/PARSER_PROMPT.md @@ -17,9 +17,9 @@ https://your-domain.com/{email}/{parser-name} ``` **Examples:** -- `https://webhooks.dixon.cx/test%40example.com/github` -- `https://webhooks.dixon.cx/user%40company.com/grafana` -- `https://webhooks.dixon.cx/dev%40startup.io/json` +- `https://webhook.me.uk/test%40example.com/github` +- `https://webhook.me.uk/user%40company.com/grafana` +- `https://webhook.me.uk/dev%40startup.io/json` ### How It Works @@ -355,7 +355,7 @@ Real deliveries over HTTP/2 arrive with lowercase header names. `headers.Get` ha | `LISTEN` | `127.0.0.1:8080` | Address to listen on (`:8080` in the container) | | `SMTP_ADDR` | `127.0.0.1:25` | SMTP relay (`172.17.0.1:25` in the container, the host's postfix) | | `MAIL_FROM` | `no-reply@dixon.cx` | Envelope and From address | -| `PUBLIC_HOST` | `webhooks.dixon.cx` | Host shown in email footers | +| `PUBLIC_HOST` | `webhook.me.uk` | Host shown in email footers | --- diff --git a/README.md b/README.md index 69373ea..91990b0 100644 --- a/README.md +++ b/README.md @@ -325,7 +325,7 @@ The image is a static binary on `distroless`, runs as non-root, listens on `:808 | `LISTEN` | `127.0.0.1:8080` | Address to listen on (`:8080` in the container) | | `SMTP_ADDR` | `127.0.0.1:25` | SMTP relay, no auth or TLS (`172.17.0.1:25` in the container) | | `MAIL_FROM` | `no-reply@dixon.cx` | Envelope and From address | -| `PUBLIC_HOST` | `webhooks.dixon.cx` | Host shown in email footers | +| `PUBLIC_HOST` | `webhook.me.uk` | Host shown in email footers | `/healthz` returns `ok`, and `webhooks -check` exits non-zero if a running instance is unhealthy (used by the image's `HEALTHCHECK`). diff --git a/WEBEX_INTERACT_GUIDE.md b/WEBEX_INTERACT_GUIDE.md index 7b398f1..6771fb4 100644 --- a/WEBEX_INTERACT_GUIDE.md +++ b/WEBEX_INTERACT_GUIDE.md @@ -15,7 +15,7 @@ https://your-domain.com/{your-email}/wxinteract ### Example ``` -https://webhooks.dixon.cx/sms-notifications%40mycompany.com/wxinteract +https://webhook.me.uk/sms-notifications%40mycompany.com/wxinteract ``` ## Supported Events diff --git a/docs.html b/docs.html index d866a69..6055526 100644 --- a/docs.html +++ b/docs.html @@ -7,102 +7,85 @@ diff --git a/render.go b/render.go index 49178c3..a99c4c4 100644 --- a/render.go +++ b/render.go @@ -266,10 +266,10 @@ var hostName = func() string { if v := os.Getenv("PUBLIC_HOST"); v != "" { return v } - return "webhooks.dixon.cx" + return "webhook.me.uk" }() -// emailShell wraps a body of sections in the shared design: stylesheet, gradient header, footer. +// emailShell wraps a body of sections in the shared design: stylesheet, header, footer. // title and stamp must already be HTML-safe. func emailShell(title, stamp, body, footer string) string { if footer == "" { @@ -314,44 +314,44 @@ const shellSrc = `
|
|