DIFFUSION_SERVER shared config
The diffusion adapter supports only one type of sharedConfig type - DIFFUSION_SERVER
.
It defines the details of the remote Diffusion server to connect to.
Once this shared config is defined, it can be referred to in any configuration of
the services of the STREAM_TO_REMOTE
service type or STREAM_FROM_REMOTE
service type.
This means that any common Diffusion server configuration can be defined as a
DIFFUSION_SERVER
shared config and reused in multiple services.
{
"sharedConfigName": "remoteDiffusionServer",
"sharedConfigType": "DIFFUSION_SERVER",
"description": "The Diffusion server connection detail of the remote server",
"config": {
"application": {
"diffusion": {
"url": "ws://localhost:7080",
"principal": "admin",
"password": "password",
"reconnectIntervalMs": 5000
}
}
}
}
The supported application configuration parameters for this sharedConfig type are defined in the table below:
All configuration parameters for the DIFFUSION_SERVER sharedConfig type
can also be defined within the configuration for STREAM_TO_REMOTE or STREAM_FROM_REMOTE
services. The final configuration for such services will be a combination of the
configuration defined for the service itself and the configuration of the sharedConfig
referred to in the service configuration. If there is a duplicate configuration,
the one in the service configuration will take precedence. This means that any
configuration defined in the sharedConfig can be overridden by defining it in the
service-specific configuration.
|
See Configuring the adapter for a complete example
of the configuration for the adapter which specifies an instance of DIFFUSION_SERVER
sharedConfig and refers to it in the service configurations.
Key | Description | Default |
---|---|---|
|
OAuth server URL to fetch authentication token to use to connect to the remote Diffusion server. |
n/a |
|
A key value pair of headers to use to send request to the OAuth server. |
none |
|
HTTP method to use to send request to the OAuth server. Accepted
values are |
POST |
|
A key value pair of payload or request parameters to use when sending a request to the OAuth server. |
none |
{
"sharedConfigName": "remoteDiffusionServer",
"sharedConfigType": "DIFFUSION_SERVER",
"description": "The Diffusion server connection detail of the remote server",
"config": {
"application": {
"diffusion": {
"url": "ws://localhost:7080",
"principal": "admin",
"oauth": {
"server": "https://localhost/oauth/token",
"headers": {
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json"
},
"payload": {
"client_id": "wfgrFfdsfsleialdasd",
"client_secret": "THHHHldgjsOOJlg;OO",
"grant_type": "client_credentials",
"audience": "https://localhost:9090/v2"
}
}
}
}
}
}