-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add command line/environment flag for commonConfig (#487)
* feat: Add command line/environment flag for commonConfig Signed-off-by: Elizabeth J Lee <[email protected]> --------- Signed-off-by: Elizabeth J Lee <[email protected]>
- Loading branch information
Showing
10 changed files
with
413 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
all-services: | ||
Writable: | ||
InsecureSecrets: | ||
DB: | ||
path: "redisdb" | ||
Secrets: | ||
username: "" | ||
password: "" | ||
SecretName: "redisdb" | ||
SecretData: | ||
username: "" | ||
password: "" | ||
|
||
Telemetry: | ||
Interval: "30s" | ||
Metrics: | ||
# Common Security Service Metrics | ||
SecuritySecretsRequested: false | ||
SecuritySecretsStored: false | ||
SecurityConsulTokensRequested: false | ||
SecurityConsulTokenDuration: false | ||
Tags: # Contains the service level tags to be attached to all the service's metrics | ||
# Gateway: "my-iot-gateway" # Tag must be added here or via Consul Env Override can only change existing value, not added new ones. | ||
|
||
Service: | ||
HealthCheckInterval: "10s" | ||
Host: "localhost" | ||
ServerBindAddr: "" # Leave blank so default to Host value unless different value is needed. | ||
MaxResultCount: 1024 | ||
MaxRequestSize: 0 # Not currently used. Defines the maximum size of http request body in bytes | ||
RequestTimeout: "5s" | ||
CORSConfiguration: | ||
EnableCORS: false | ||
CORSAllowCredentials: false | ||
CORSAllowedOrigin: "https://localhost" | ||
CORSAllowedMethods: "GET, POST, PUT, PATCH, DELETE" | ||
CORSAllowedHeaders: "Authorization, Accept, Accept-Language, Content-Language, Content-Type, X-Correlation-ID" | ||
CORSExposeHeaders: "Cache-Control, Content-Language, Content-Length, Content-Type, Expires, Last-Modified, Pragma, X-Correlation-ID" | ||
CORSMaxAge: 3600 | ||
|
||
Registry: | ||
Host: "localhost" | ||
Port: 8500 | ||
Type: "consul" | ||
|
||
Database: | ||
Host: "localhost" | ||
Port: 6379 | ||
Timeout: 5000 | ||
Type: "redisdb" | ||
|
||
MessageBus: | ||
Protocol: "redis" | ||
Host: "localhost" | ||
Port: 6379 | ||
Type: "redis" | ||
AuthMode: "usernamepassword" # required for redis MessageBus (secure or insecure). | ||
SecretName: "redisdb" | ||
BaseTopicPrefix: "edgex" # prepended to all topics as "edgex/<additional topic levels> | ||
Optional: | ||
# Default MQTT Specific options that need to be here to enable environment variable overrides of them | ||
Qos: "0" # Quality of Service values are 0 (At most once), 1 (At least once) or 2 (Exactly once) | ||
KeepAlive: "10" # Seconds (must be 2 or greater) | ||
Retained: "false" | ||
AutoReconnect: "true" | ||
ConnectTimeout: "5" # Seconds | ||
SkipCertVerify: "false" | ||
# Additional Default NATS Specific options that need to be here to enable environment variable overrides of them | ||
Format: "nats" | ||
RetryOnFailedConnect: "true" | ||
QueueGroup: "" | ||
Durable: "" | ||
AutoProvision: "true" | ||
Deliver: "new" | ||
DefaultPubRetryAttempts: "2" | ||
Subject: "edgex/#" # Required for NATS JetStream only for stream auto-provisioning |
Empty file.
Oops, something went wrong.