mirror of
https://github.com/twofas/2fas-server.git
synced 2024-11-25 03:41:06 +01:00
14 lines
757 B
Go
14 lines
757 B
Go
package config
|
|
|
|
import "time"
|
|
|
|
type PassConfig struct {
|
|
Addr string `envconfig:"PASS_ADDR" default:":8082"`
|
|
KMSKeyID string `envconfig:"KMS_KEY_ID" default:"alias/pass_service_signing_key"`
|
|
AWSEndpoint string `envconfig:"AWS_ENDPOINT" default:""`
|
|
AWSRegion string `envconfig:"AWS_REGION" default:"us-east-2"`
|
|
FirebaseServiceAccount string `envconfig:"FIREBASE_SA"`
|
|
FakeMobilePush bool `envconfig:"FAKE_MOBILE_PUSH" default:"false"`
|
|
PairingRequestTokenValidityDuration time.Duration `envconfig:"PAIRING_REQUEST_TOKEN_VALIDITY_DURATION" default:"8765h"` // 1 year
|
|
}
|