config

package
v0.0.0-...-68463a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL