config

package
v0.0.0-...-6f300a8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// SettingListen is the config key for the listen address
	SettingListen = "listen"
	// SettingListenDefault is the default value for the listen address
	SettingListenDefault = ":8080"

	// SettingMongo is the config key for the mongo URL
	SettingMongo = "mongo_url"
	// SettingMongoDefault is the default value for the mongo URL
	SettingMongoDefault = "mongodb://mender-mongo:27017"

	// SettingDbName is the config key for the mongo database name
	SettingDbName = "mongo_dbname"
	// SettingDbNameDefault is the default value for the mongo database name
	SettingDbNameDefault = "iot-manager"

	// SettingDbSSL is the config key for the mongo SSL setting
	SettingDbSSL = "mongo_ssl"
	// SettingDbSSLDefault is the default value for the mongo SSL setting
	SettingDbSSLDefault = false

	// SettingDbSSLSkipVerify is the config key for the mongo SSL skip verify setting
	SettingDbSSLSkipVerify = "mongo_ssl_skipverify"
	// SettingDbSSLSkipVerifyDefault is the default value for the mongo SSL skip verify setting
	SettingDbSSLSkipVerifyDefault = false

	// SettingDbUsername is the config key for the mongo username
	SettingDbUsername = "mongo_username"

	// SettingDbPassword is the config key for the mongo password
	SettingDbPassword = "mongo_password"

	// SettingWorkflowsURL configures the workflows URL
	SettingWorkflowsURL = "workflows_url"
	// SettingWorkflowsURL defines the default workflows URL
	SettingWorkflowsURLDefault = "http://mender-workflows-server:8080"

	// SettingAESEncryptionKey stores the 32 bytes long key used to encrypt and
	// decrypt sensitive data
	SettingAESEncryptionKey = "aes_encryption_key"
	// SettingAESEncryptionFallbackKey stores the 32 bytes long fallback key used
	// to decrypt sensitive data when performing key-rotation
	SettingAESEncryptionFallbackKey = "aes_encryption_fallback_key"

	// SettingDeviceauthURL configures the deviceauth URL
	SettingDeviceauthURL = "deviceauth_url"
	// SettingDeviceauthURL defines the default deviceauth URL
	SettingDeviceauthURLDefault = "http://mender-device-auth:8080"

	// SettingDebugLog is the config key for the turning on the debug log
	SettingDebugLog = "debug_log"
	// SettingDebugLogDefault is the default value for the debug log enabling
	SettingDebugLogDefault = false

	// SettingDomainWhitelist sets the hostnames trusted by this service
	// to mitigate SSRF attacks. The whitelist accept DNS-like wildcards
	// to cover all subdomains.
	SettingDomainWhitelist = "domain_whitelist"
	// SettingDomainWhitelist sets the default to the set of potential IoT
	// Hub domains included in connection strings.
	SettingDomainWhitelistDefault = "*.azure-devices.net *.iot.*.amazonaws.com"

	// SettingEventExpirationTimeout sets the expiration timeout for stored
	// events. After this time events will be removed from the storage.
	SettingEventExpirationTimeout = "event_exp_timeout"
	// SettingEventExpirationTimeoutDefault define the default expiration
	// timeout for events.
	SettingEventExpirationTimeoutDefault = "604800" // one week

	// SettingWebhooksTimeoutSeconds sets the timeout for webook
	// requests. After this number of seconds requests will be cancelled.
	SettingWebhooksTimeoutSeconds = "webhooks_timeout_seconds"
	// SettingWebhooksTimeoutSecondsDefault define the default timeout
	// in seconds for webhook requests.
	SettingWebhooksTimeoutSecondsDefault = "10" // 10 seconds
)

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