diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-03-26 19:04:18 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-26 19:04:18 -0400 |
| commit | e7cbd349f3ff96788dc7a8540d29808ca72e1c44 (patch) | |
| tree | 63cfdb5045e26bd86f09d156e0d7588514e39c55 /cmd/anubis | |
| parent | 07bb5f63f9d57d7ac2a95d0bf7560a985078cfbc (diff) | |
| download | anubis-e7cbd349f3ff96788dc7a8540d29808ca72e1c44.tar.xz anubis-e7cbd349f3ff96788dc7a8540d29808ca72e1c44.zip | |
lib/anubis: support setting extended cookie flags (#120)
* lib/anubis: support setting extended cookie flags
Signed-off-by: Xe Iaso <me@xeiaso.net>
* lib: use cookie name consistently
Signed-off-by: Xe Iaso <me@xeiaso.net>
---------
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/anubis')
| -rw-r--r-- | cmd/anubis/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/anubis/main.go b/cmd/anubis/main.go index 551ed61..024b972 100644 --- a/cmd/anubis/main.go +++ b/cmd/anubis/main.go @@ -33,6 +33,9 @@ import ( var ( bind = flag.String("bind", ":8923", "network address to bind HTTP to") bindNetwork = flag.String("bind-network", "tcp", "network family to bind HTTP to, e.g. unix, tcp") + cookieDomain = flag.String("cookie-domain", "", "if set, the top-level domain that the Anubis cookie will be valid for") + cookieName = flag.String("cookie-name", anubis.CookieName, "the name of the cookie that Anubis stores challenge pass records in") + cookiePartitioned = flag.Bool("cookie-partitioned", false, "if true, sets the partitioned flag on Anubis cookies, enabling CHIPS support") challengeDifficulty = flag.Int("difficulty", anubis.DefaultDifficulty, "difficulty of the challenge") ed25519PrivateKeyHex = flag.String("ed25519-private-key-hex", "", "private key used to sign JWTs, if not set a random one will be assigned") metricsBind = flag.String("metrics-bind", ":9090", "network address to bind metrics to") |
