From e4225db9602cb1c37bbb61a7a09ccd01ea1d8949 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 8 Jan 2023 17:04:20 +0400 Subject: [PATCH] Changed defaults. Now expiry is 10 minutes and socket named just as sock. --- cmd/justcaptchad/main.go | 4 ++-- init/systemd.service | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/justcaptchad/main.go b/cmd/justcaptchad/main.go index bc032af..4b129de 100644 --- a/cmd/justcaptchad/main.go +++ b/cmd/justcaptchad/main.go @@ -16,8 +16,8 @@ import ( var version string -var listenAddress *string = flag.String("listen", "/var/run/justcaptcha/c.sock", "listen address (ip:port|unix_path)") -var captchaExpiry *time.Duration = flag.Duration("expiry", 5*time.Minute, "CAPTCHA expiry in format XX{s,m,h}, e.g. 5m, 300s") +var listenAddress *string = flag.String("listen", "/var/run/justcaptcha/sock", "listen address (ip:port|unix_path)") +var captchaExpiry *time.Duration = flag.Duration("expiry", 10*time.Minute, "CAPTCHA expiry in format XX{s,m,h}, e.g. 5m, 300s") var showVersion *bool = flag.Bool("v", false, "show version") func main() { diff --git a/init/systemd.service b/init/systemd.service index fc9fc54..fe3c6e1 100755 --- a/init/systemd.service +++ b/init/systemd.service @@ -6,7 +6,7 @@ After=network.target Type=simple Restart=on-failure DynamicUser=yes -ExecStart=/usr/bin/justcaptchad -expiry 5m -listen /var/run/justcaptcha/j.sock +ExecStart=/usr/bin/justcaptchad -expiry 10m -listen /var/run/justcaptcha/sock ReadOnlyPaths=/ # Set here path to directory where uploads are stored.