Changed defaults. Now expiry is 10 minutes and socket named just as sock.

This commit is contained in:
Alexander Andreev 2023-01-08 17:04:20 +04:00
parent b91c24998a
commit e4225db960
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
2 changed files with 3 additions and 3 deletions

View File

@ -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() {

View File

@ -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.