diff --git a/config/config.go b/config/config.go index 1f13c9a..b7c6f20 100644 --- a/config/config.go +++ b/config/config.go @@ -11,19 +11,19 @@ import ( ) type Config struct { - SQLitePath string + SQLitePath string // path relative to the executable where the database is at. CSRFKey string // random string at least 32 bytes long. Domain string // domain used both for the frontend and SSH - Port uint - SSHPort uint - AllowSignups bool + Port uint // HTTP/S port + SSHPort uint // SSH port + AllowSignups bool // boolean. Invites allow to signup users. - InviteTokenLength uint // length of token. 6 -> "abc123" + InviteTokenLength uint // length of token. 6 -> "abc123". If set to 0 it will error out. InviteTokenDuration time.Duration // how much an invite should last: 7d or 4h or 2h45m - HackatimeClientID string - HackatimeClientSecret string + HackatimeClientID string // optional field for hackatime oauth + HackatimeClientSecret string // optional field for hackatime oauth } var C Config