mirror of
https://github.com/OpenMTC/OpenMTC.git
synced 2024-12-21 13:57:56 +00:00
89 lines
2.6 KiB
JSON
89 lines
2.6 KiB
JSON
{
|
|
"global": {
|
|
"disable_forwarding": false,
|
|
"default_lifetime": 2000,
|
|
"additional_host_names": [],
|
|
"require_auth": false,
|
|
"default_content_type": "application/json"
|
|
},
|
|
"database": {
|
|
"driver": "openmtc_server.db.nodb2.NoDB2",
|
|
"dropDB": true
|
|
},
|
|
"logging": {
|
|
"level": "ERROR",
|
|
"file": null
|
|
},
|
|
"onem2m": {
|
|
"sp_id": "openmtc.org",
|
|
"cse_type": "IN-CSE",
|
|
"cse_id": "in-cse-1",
|
|
"cse_base": "onem2m",
|
|
"ssl_certs": {
|
|
"key": "certs/in-cse-1-client-server.key.pem",
|
|
"crt": "certs/in-cse-1-client-server.cert.pem",
|
|
"ca": "certs/ca-chain.cert.pem"
|
|
},
|
|
"accept_insecure_certs": false,
|
|
"overwrite_originator": {
|
|
"enabled": false,
|
|
"originator": "/openmtc.org/in-cse-1"
|
|
},
|
|
"default_privileges": [
|
|
{
|
|
"accessControlOperations": [2, 32],
|
|
"accessControlOriginators": ["all"]
|
|
}
|
|
],
|
|
"dynamic_authorization": {
|
|
"enabled": false,
|
|
"poa": []
|
|
}
|
|
},
|
|
"plugins": {
|
|
"openmtc_cse": [
|
|
{
|
|
"name": "HTTPTransportPlugin",
|
|
"package": "openmtc_cse.plugins.transport_gevent_http",
|
|
"disabled": false,
|
|
"config": {
|
|
"interface": "::",
|
|
"port": 18000,
|
|
"enable_https": false,
|
|
"require_cert": true
|
|
}
|
|
},
|
|
{
|
|
"name": "MQTTTransportPlugin",
|
|
"package": "openmtc_cse.plugins.transport_gevent_mqtt",
|
|
"disabled": true,
|
|
"config": {
|
|
"interface": "localhost",
|
|
"port": 1883
|
|
}
|
|
},
|
|
{
|
|
"name": "NotificationHandler",
|
|
"package": "openmtc_cse.plugins.notification_handler",
|
|
"disabled": false
|
|
},
|
|
{
|
|
"name": "ExpirationTimeHandler",
|
|
"package": "openmtc_cse.plugins.expiration_time_handler",
|
|
"disabled": true,
|
|
"config": {
|
|
"default_lifetime": 10000
|
|
}
|
|
},
|
|
{
|
|
"name": "AnnouncementHandler",
|
|
"package": "openmtc_cse.plugins.announcement_handler",
|
|
"disabled": true,
|
|
"config": {
|
|
"auto_announce": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|