diff --git a/.dockerignore b/.dockerignore index e32a375..5955d6b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,3 +2,4 @@ !go.mod !*.go !docs.html +!static diff --git a/Dockerfile b/Dockerfile index 220890a..1216595 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,12 @@ FROM golang:1.26-alpine AS build WORKDIR /src COPY go.mod ./ COPY *.go docs.html ./ +COPY static ./static 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=webhook.me.uk +ENV LISTEN=:8080 SMTP_ADDR=172.17.0.1:25 MAIL_FROM=no-reply@webhook.me.uk 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 66d4dd3..e737726 100644 --- a/PARSER_PROMPT.md +++ b/PARSER_PROMPT.md @@ -354,7 +354,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 | +| `MAIL_FROM` | `no-reply@webhook.me.uk` | Envelope and From address | | `PUBLIC_HOST` | `webhook.me.uk` | Host shown in email footers | --- diff --git a/README.md b/README.md index 91990b0..4044042 100644 --- a/README.md +++ b/README.md @@ -324,7 +324,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 | +| `MAIL_FROM` | `no-reply@webhook.me.uk` | Envelope and From address | | `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/docs.html b/docs.html index 6055526..a75b60c 100644 --- a/docs.html +++ b/docs.html @@ -1,10 +1,34 @@ - +
-