Files
headscale/hscontrol/types/const.go
T

26 lines
661 B
Go

package types
import "time"
const (
HTTPTimeout = 30 * time.Second
HTTPShutdownTimeout = 3 * time.Second
TLSALPN01ChallengeType ACMEChallenge = "TLS-ALPN-01"
HTTP01ChallengeType ACMEChallenge = "HTTP-01"
DNS01ChallengeType ACMEChallenge = "DNS-01"
JSONLogFormat LogFormat = "json"
TextLogFormat LogFormat = "text"
MaxHostnameLength = 255
)
// Client report limits are above what a stock client sends.
// MaxHostinfoSize applies separately to NetInfo and the remaining fields without routes.
const (
MaxEndpoints = 256
MaxRequestTags = 256
MaxRoutableIPs = 4096
MaxHostinfoSize = 64 << 10
)