feat: add option for delaying task get requests
All checks were successful
release-tag / release (push) Successful in 2m3s

This commit is contained in:
2023-07-14 03:19:16 +03:00
parent 5a40fb593c
commit 5f60eb8752
3 changed files with 16 additions and 8 deletions

View File

@ -16,6 +16,8 @@ type Config struct {
TlsKeyPath string `json:"tlsKeyPath"`
Host string `json:"host"`
TlsHost string `json:"tlsHost"`
TaskLifetime int64 `json:"taskLifetime"`
TaskGetDelay int64 `json:"taskGetDelay"`
AntiGateV2 struct {
TurnstileUserAgent string `json:"turnstileUserAgent"`
Ip string `json:"ip"`
@ -32,6 +34,8 @@ func Default() *Config {
TlsKeyPath: "./data/ca.key",
Host: "127.0.0.1:80",
TlsHost: "127.0.0.1:443",
TaskLifetime: 60000,
TaskGetDelay: 0,
AntiGateV2: struct {
TurnstileUserAgent string `json:"turnstileUserAgent"`
Ip string `json:"ip"`