Documentation ¶
Index ¶
Constants ¶
View Source
const ( SettingListen = "listen" SettingListenDefault = ":8080" SettingMiddleware = "middleware" SettingMiddlewareDefault = "prod" SettingServerPrivKeyPath = "server_priv_key_path" SettingServerPrivKeyPathDefault = "/etc/useradm/rsa/private.pem" SettingServerPrivKeyFileNamePattern = "server_priv_key_filename_pattern" SettingServerPrivKeyFileNamePatternDefault = "private\\.id\\.([0-9]*)\\.pem" SettingServerFallbackPrivKeyPath = "server_fallback_priv_key_path" SettingServerFallbackPrivKeyPathDefault = "" SettingJWTIssuer = "jwt_issuer" SettingJWTIssuerDefault = "mender.useradm" SettingJWTExpirationTimeout = "jwt_exp_timeout" SettingJWTExpirationTimeoutDefault = "604800" //one week SettingDb = "mongo" SettingDbDefault = "mongo-useradm" SettingTenantAdmAddr = "tenantadm_addr" SettingTenantAdmAddrDefault = "" SettingDbSSL = "mongo_ssl" SettingDbSSLDefault = false SettingDbSSLSkipVerify = "mongo_ssl_skipverify" SettingDbSSLSkipVerifyDefault = false SettingDbUsername = "mongo_username" SettingDbPassword = "mongo_password" SettingLimitSessionsPerUser = "limit_sessions_per_user" SettingLimitSessionsPerUserDefault = 10 SettingLimitTokensPerUser = "limit_tokens_per_user" SettingLimitTokensPerUserDefault = 10 SettingTokenLastUsedUpdateFreqMinutes = "token_last_used_update_freq_minutes" SettingTokenLastUsedUpdateFreqMinutesDefault = 5 SettingTokenMaxExpirationSeconds = "token_max_expiration_seconds" SettingTokenMaxExpirationSecondsDefault = 31536000 SettingPlanDefinitions = "plan_definitions_path" SettingPlanDefinitionsDefault = "/etc/useradm/plans.yaml" )
Variables ¶
View Source
var ( ConfigDefaults = []config.Default{ {Key: SettingListen, Value: SettingListenDefault}, {Key: SettingMiddleware, Value: SettingMiddlewareDefault}, {Key: SettingServerPrivKeyPath, Value: SettingServerPrivKeyPathDefault}, {Key: SettingServerPrivKeyFileNamePattern, Value: SettingServerPrivKeyFileNamePatternDefault}, {Key: SettingServerFallbackPrivKeyPath, Value: SettingServerFallbackPrivKeyPathDefault}, {Key: SettingJWTIssuer, Value: SettingJWTIssuerDefault}, {Key: SettingJWTExpirationTimeout, Value: SettingJWTExpirationTimeoutDefault}, {Key: SettingDb, Value: SettingDbDefault}, {Key: SettingTenantAdmAddr, Value: SettingTenantAdmAddrDefault}, {Key: SettingDbSSL, Value: SettingDbSSLDefault}, {Key: SettingDbSSLSkipVerify, Value: SettingDbSSLSkipVerifyDefault}, {Key: SettingLimitSessionsPerUser, Value: SettingLimitSessionsPerUserDefault}, {Key: SettingLimitTokensPerUser, Value: SettingLimitTokensPerUserDefault}, {Key: SettingTokenLastUsedUpdateFreqMinutes, Value: SettingTokenLastUsedUpdateFreqMinutesDefault}, {Key: SettingTokenMaxExpirationSeconds, Value: SettingTokenMaxExpirationSecondsDefault}, {Key: SettingPlanDefinitions, Value: SettingPlanDefinitionsDefault}, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.