1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
| # TODO: Go here for detailed information on Application Service configuation: # https://docs.edgexfoundry.org/2.2/microservices/application/GeneralAppServiceConfig/ [Writable] LogLevel = "INFO"
[Writable.StoreAndForward] Enabled = false RetryInterval = "5m" MaxRetryCount = 10
[Writable.InsecureSecrets] [Writable.InsecureSecrets.DB] path = "redisdb" [Writable.InsecureSecrets.DB.Secrets] username = "" password = "" # TODO: Remove if not using HTTPS Webserver [Writable.InsecureSecrets.HTTPS] path = "https" [Writable.InsecureSecrets.HTTPS.Secrets] cert = "" key = ""
[Writable.Telemetry] Interval = "30s" PublishTopicPrefix = "edgex/telemetry" # /<service-name>/<metric-name> will be added to this Publish Topic prefix [Writable.Telemetry.Metrics] # All service's metric names must be present in this list. MessagesReceived = true PipelineMessagesProcessed = true # Your pipeline IDs are added to this name for the actual metric name reported PipelineMessageProcessingTime = true # Your pipeline IDs are added to this name for the actual metric name reported # TODO: Remove sample custom metric and implement meaningful custom metrics if any needed. EventsConvertedToXML = true [Writable.Telemetry.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 chnage existing value, not added new ones.
[Service] HealthCheckInterval = "10s" Host = "localhost" # TODO: set this port appropriately, # App service use port assigments 597xx with lower range 00-39 reserved for # app-service-configurable profiles/instances, Rules Engine and examples Port = 59740 ServerBindAddr = "" # Leave blank so default to Host value unless different value is needed. StartupMsg = "maxscale-app-service Application Service has started" MaxResultCount = 0 # Not curently used by App Services. MaxRequestSize = 0 # Not curently used by App Services. RequestTimeout = "5s"
# TODO: Remove section if not using HTTPS Webserver. Default protocol is HTTP if section is empty [HttpServer] Protocol = "http" SecretName = "https" HTTPSCertName = "cert" HTTPSKeyName = "key"
[Registry] Host = "localhost" Port = 8500 Type = "consul"
[Database] Type = "redisdb" Host = "localhost" Port = 6379 Timeout = "30s"
# TODO: Determine if your service will use secrets in secure mode, i.e. Vault. # if not this secion can be removed, but you must make sure EDGEX_SECURITY_SECRET_STORE is set to false # Note is database is running in secure more and you have Store and Forward enable you will need to run this # service in secure mode. # For more deatils about SecretStore: https://docs.edgexfoundry.org/2.2/microservices/security/Ch-SecretStore/ [SecretStore] Type = "vault" Host = "localhost" Port = 8200 Path = "appservice/" Protocol = "http" RootCaCertPath = "" ServerName = "" TokenFile = "/tmp/edgex/secrets/maxscale-app-service/secrets-token.json" [SecretStore.Authentication] AuthType = "X-Vault-Token" [SecretStore.RuntimeTokenProvider] Enabled = false Protocol = "https" Host = "localhost" Port = 59841 TrustDomain = "edgexfoundry.org" EndpointSocket = "/tmp/edgex/secrets/spiffe/public/api.sock" RequiredSecrets = "redisdb"
[Clients] [Clients.core-data] Protocol = "http" Host = "localhost" Port = 59880
[Clients.core-metadata] Protocol = "http" Host = "localhost" Port = 59881
[Clients.core-command] Protocol = "http" Host = "localhost" Port = 59882
[Clients.support-notifications] Protocol = "http" Host = "localhost" Port = 59860
[Trigger] Type="edgex-messagebus" [Trigger.EdgexMessageBus] Type = "redis" [Trigger.EdgexMessageBus.SubscribeHost] Host = "localhost" Port = 6379 Protocol = "redis" SubscribeTopics="edgex/events/#" [Trigger.EdgexMessageBus.PublishHost] # TODO: Remove if service is NOT publishing back to the message bus Host = "localhost" Port = 6379 Protocol = "redis" PublishTopic="event-xml" [Trigger.EdgexMessageBus.Optional] authmode = "usernamepassword" # requied for redis messagebus (secure or insecure). secretname = "redisdb"
# TODO: If using mqtt messagebus, Uncomment this section and remove above [Trigger] section, # Otherwise remove this commented out block #[Trigger] #Type="edgex-messagebus" # [Trigger.EdgexMessageBus] # Type = "mqtt" # [Trigger.EdgexMessageBus.SubscribeHost] # Host = "localhost" # Port = 1883 # Protocol = "tcp" # SubscribeTopics="events, edgex/events/#" # [Trigger.EdgexMessageBus.PublishHost] # TODO: Remove if service is NOT publishing back to the message bus # Host = "localhost" # Port = 1883 # Protocol = "tcp" # PublishTopic="event-xml" # [Trigger.EdgexMessageBus.Optional] # ClientId ="maxscale-app-service" # Qos = "0" # Quality of Sevice 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 = "30" # Seconds # SkipCertVerify = "false" # authmode = "none" # change to "usernamepassword", "clientcert", or "cacert" for secure MQTT messagebus. # secretname = "mqtt-bus"
# TODO: Add custom settings needed by your app service or remove if you don't have any settings. # This can be any Key/Value pair you need. # For more details see: https://docs.edgexfoundry.org/2.2/microservices/application/GeneralAppServiceConfig/#application-settings # Example that works with devices from the Virtual Device service: [ApplicationSettings] DeviceNames = "Random-Boolean-Device, Random-Integer-Device, Random-UnsignedInteger-Device, Random-Float-Device, Random-Binary-Device"
# TODO: Replace this section with your actual structured custom configuration section # or remove if you don't have a need for structured custom configuration # This can be any structure you need, but it can not contain slices. Use a maps instead of slices. # For more details see: https://docs.edgexfoundry.org/2.2/microservices/application/GeneralAppServiceConfig/#custom-configuration [AppCustom] ResourceNames = "Boolean, Int32, Uint32, Float32, Binary" SomeValue = 123 [AppCustom.SomeService] Host = "localhost" Port = 9080 Protocol = "http"
|