diff options
| author | eerielili <lionel@les-miquelots.net> | 2025-04-07 21:44:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-07 19:44:00 +0000 |
| commit | acce3604a4ccaa13be2ecb148c919f33d4383d5e (patch) | |
| tree | e6b4d7377afa3dd172f69fd91b809226ca3b62c3 /cmd | |
| parent | 0928c3c8307425834921e786e17181702e845eb6 (diff) | |
| download | anubis-acce3604a4ccaa13be2ecb148c919f33d4383d5e.tar.xz anubis-acce3604a4ccaa13be2ecb148c919f33d4383d5e.zip | |
Add variable WEBMASTER_EMAIL and if present, display it on error page (#235)
* Add variable WEBMASTER_EMAIL and if present, display it on error page
- Adresses issue https://github.com/TecharoHQ/anubis/issues/115
* web: regenerate templates
Signed-off-by: Xe Iaso <me@xeiaso.net>
* update docs
Signed-off-by: Xe Iaso <me@xeiaso.net>
---------
Signed-off-by: Xe Iaso <me@xeiaso.net>
Co-authored-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/anubis/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/anubis/main.go b/cmd/anubis/main.go index 9fca3e2..724f88a 100644 --- a/cmd/anubis/main.go +++ b/cmd/anubis/main.go @@ -58,6 +58,7 @@ var ( ogPassthrough = flag.Bool("og-passthrough", false, "enable Open Graph tag passthrough") ogTimeToLive = flag.Duration("og-expiry-time", 24*time.Hour, "Open Graph tag cache expiration time") extractResources = flag.String("extract-resources", "", "if set, extract the static resources to the specified folder") + webmasterEmail = flag.String("webmaster-email", "", "if set, displays webmaster's email on the reject page for appeals") ) func keyFromHex(value string) (ed25519.PrivateKey, error) { @@ -260,6 +261,7 @@ func main() { OGPassthrough: *ogPassthrough, OGTimeToLive: *ogTimeToLive, Target: *target, + WebmasterEmail: *webmasterEmail, }) if err != nil { log.Fatalf("can't construct libanubis.Server: %v", err) |
