forked from ankraft/ACME-oneM2M-CSE
-
Notifications
You must be signed in to change notification settings - Fork 1
/
acme.ini.default
626 lines (539 loc) · 18.2 KB
/
acme.ini.default
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
;
; acme.ini - Configuration file the ACME CSE
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; ;
; PLEASE DON'T MAKE CHANGES TO THIS FILE. ;
; ;
; THE CSE STARTS A DIALOG WHEN RUN FOR THE FIRST TIME OR WITH A NON-EXISTING ;
; CONFIGURATION FILE. ;
; OTHERWISE COPY THIS FILE TO A NEW FILE NAMED "acme.ini", WHICH IS THE ;
; DEFAULT CONFIGURATION FILE.
; ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; General CSE settings
;
[cse]
; CSE type. Allowed values: IN, MN, ASN.
; Default: IN
type=${basic.config:cseType}
; The CSE's service provider ID.
; Default: acme.example.com
serviceProviderID=acme.example.com
; The CSE ID. Can be overwritten in imported CSE definition.
; Default: /id-in
cseID=/${basic.config:cseID}
; The CSE's resource ID. Can be overwritten in imported CSE definition.
; Default: id-in
resourceID=${basic.config:cseID}
; The CSE's resource name or CSE-Name. Can be overwritten in imported CSE definition.
; Default: cse-in
resourceName=${basic.config:cseName}
; Directory of default resources to import.
; Default: ./init
resourcesPath=${basic.config:dataDirectory}/init
; Enable resource expiration. If disabled resources will not be expired when the "expirationTimestamp" is reached.
; Default: true
enableResourceExpiration=true
; Maximum expirationTime allowed for resources in seconds.
; Default: 60*60*24*365*5 = 157680000 seconds = 5 years
maxExpirationDelta=157680000
; Expiration time for requests sent by the CSE in seconds.
; Default: 10.0 seconds
requestExpirationDelta=10.0
; Admin originator for the CSE.
; Default: CAdmin
originator=${basic.config:adminID}
; Enable remote CSE registration and checking.
; Default: True
enableRemoteCSE=true
; Enable alphabetical sorting of discovery results.
; Default: True
sortDiscoveredResources=true
; Interval to check for expired resources. 0 means "no checking".
; Default: 60 seconds
checkExpirationsInterval=60
; Indicate the preference for flexBlocking response types. Allowed values: "blocking", "nonblocking".
; Default: blocking
flexBlockingPreference=blocking
; A comma-separated list of supported release versions. This list can contain a single or multiple values.
; Default: 2a,3,4,5
supportedReleaseVersions=2a,3,4,5
; The release version indicator for requests. Allowed values: 2a,3,4,5.
; Default: 4
releaseVersion=4
; Indicate the serialization format if none was given in a request and cannot be determined otherwise.
; Allowed values: json, cbor. Default: json
defaultSerialization=json
; Enable or disable asynchronous notification for normal runtime subscription notifications.
; Default: true
asyncSubscriptionNotifications=true
; Enable or disable verification requests when creating a new subscription.
; Default: true
enableSubscriptionVerificationRequests=true
; Indicate whether the optional "to" and "from" parameters shall be sent in responses.
; Default: true
sendToFromInResponses=true
;
; Settings for CSE security
;
[cse.security]
; Enable access control checks.
; Default: True
enableACPChecks=true
; Always grant the admin originator full access (bypass access checks).
; Default: True
fullAccessAdmin=True
;
; Settings for CSE operation
;
[cse.operation.jobs]
; Thread Pool Management: Target balance between paused and running jobs (n paused for 1 running threads).
; Default: 3.0
balanceTarget=3.0
; Thread Pool Management: Number of get / create requests for a new thread before performing a balance check.
; A latency of 0 disables the thread pool balancing.
; Default: 1000
balanceLatency=1000
; Thread Pool Management: The Factor to reduce the paused jobs (number of paused / balanceReduceFactor) in a balance check.
; Example: a factor of 2.0 reduces the number of paused threads by half in a single balance check.
; Default: 2.0
balanceReduceFactor=2.0
;
; Settings for CSE requests recording
;
[cse.operation.requests]
; Enable request recording.
; Default: False
enable=false
; Max number requests to record. Oldest requests will be deleted when this threshold is reached.
; Default: 200
size=200
;
; HTTP Server settings
;
[http]
; Port to listen to. Default: 8080
port=${basic.config:httpPort}
; Interface to listen to. Use 0.0.0.0 for "all" interfaces.
; Default:0.0.0.0
listenIF=${basic.config:networkInterface}
; Own address. Should be a local/public reachable address.
; Default: http://127.0.0.1:8080
address=http://${basic.config:cseHost}:${basic.config:httpPort}
; CSE Server root. Always provide a trailing /. Default: /
root=/
; Enable an endpoint for get and set certain configuration values via a
; REST interface.
; ATTENTION: Enabling this feature exposes configuration values, IDs and
; passwords, and is a security risk.
; See also the [console].hideResources setting to hide resources
; from the tree.
; Default: False
enableStructureEndpoint=false
; Enable an endpoint for supporting Upper Tester commands to the CSE.
; This is to support certain testing and certification systems.
; See oneM2M's TS-0019 for further details.
; ATTENTION: Enabling this feature may lead to a total loss of data.
; Default: False
enableUpperTesterEndpoint=false
; Allow the http PATCH method to be used as a replacement for the DELETE
; method. This is useful for constraint devices that only support http/1.0,
; which doesn't specify the DELETE method.
; Default: False
allowPatchForDelete=false
; Timeout when sending http requests and waiting for responses.
; Default: see cse.requestExpirationDelta
timeout=${cse:requestExpirationDelta}
;
; HTTP security settings
;
[http.security]
; Enable TLS for communications.
; See oneM2M TS-0003 Clause 8.2.1 Overview on Security Association Establishment Frameworks
; Default: False
useTLS=false
; TLS version to be used in connections.
; Allowed versions: TLS1.1, TLS1.2, auto . Use "auto" to allow client-server certificate
; version negotiation.
; Default: auto
tlsVersion=auto
; Verify certificates in requests. Set to False when using self-signed certificates. Default: False
verifyCertificate=false
; Path and filename of the certificate file. Default: None
caCertificateFile=${basic.config:dataDirectory}/certs/acme_cert.pem
; Path and filename of the private key file. Default: None
caPrivateKeyFile=${basic.config:dataDirectory}/certs/acme_key.pem
; Enable basic authentication for the HTTP binding.
; Default: false
enableBasicAuth=false
; Enable token authentication for the HTTP binding.
; Default: false
enableTokenAuth=false
; Path and filename of the http basic authentication file.
; The file must contain lines with the format "username:password".
; Comments are lines starting with a #.
; Default: certs/http_basic_auth.txt
basicAuthFile=${basic.config:dataDirectory}/certs/http_basic_auth.txt
; Path and filename of the http bearer token authentication file.
; The file must contain lines with the format "token".
; Comments are lines starting with a #.
; Default: certs/http_token_auth.txt
tokenAuthFile=${basic.config:dataDirectory}/certs/http_token_auth.txt
[http.cors]
; Enable CORS support for the HTTP binding.
; Default: false
enable=false
; A comma separated list of allowed resource paths. The list elements could be regular exporessions.
; Default: "/*" , ie. all resources under the HTTP server's root
resources=/*
[http.wsgi]
; Enable WSGI support for the HTTP binding.
; Default: false
enable=false
; The number of threads used to process requests.
; This number should be of similar size as the "connectionLimit" setting.
; Default: 100
threadPoolSize=100
; The number of possible parallel connections that can be accepted by the WSGI server.
; One connection uses one system file descriptor.
; Default: 100
connectionLimit=100
;
; MQTT client settings
;
[mqtt]
; Enable the MQTT binding.
; Default: false
enable=false
; The hostname of the MQTT broker.
; Default; 127.0.0.1
address=127.0.0.1
; Set the port for the MQTT broker.
; Default: 1883, or 8883 for TLS
port=1883
; Value for the MQTT connection's keep-alive parameter in seconds.
; Default: 60 seconds
keepalive=60
; Interface to listen to. Use 0.0.0.0 for "all" interfaces.
; Default: 0.0.0.0
listenIF=${basic.config:networkInterface}
; Optional prefix for topics.
; Default: empty string
topicPrefix=
; Timeout when sending MQTT requests and waiting for responses.
; Default: see cse.requestExpirationDelta
timeout=${cse:requestExpirationDelta}
;
; MQTT security settings
;
[mqtt.security]
; The username for MQTT broker authentication if required by the broker.
; Default: empty string
username=
; The password for MQTT broker authentication if required by the broker.
; Default: empty string
password=
; Enable TLS for communications with the MQTT broker.
; Default: False
useTLS=False
; Verify certificates in requests. Set to False when using self-signed certificates.
; Default: False
verifyCertificate=False
; Path and filename of the certificate file.
; Default: None
caCertificateFile=${basic.config:dataDirectory}/certs/m2mqtt_ca.crt
; List of credential-IDs that can be used to register an AE via MQTT.
; If this list is empty then all credential IDs are allowed.
; This is a comma-separated list. Wildcards (* and ?) are supported.
; Default: empty list
allowedCredentialIDs=
;
; CoAP client settings
;
[coap]
; Enable the CoAP binding.
; Default: false
enable=false
serverPort=5683
; Interface to listen to. Use 0.0.0.0 for "all" interfaces.
; Default:
listenIF=${basic.config:networkInterface}
;
; CoAP security settings
;
[coap.security]
; Enable DTLS for communications with the CoAP server.
; Default: False
useDTLS=false
; TLS version to be used in connections.
; Allowed versions: TLS1.1, TLS1.2, auto . Use "auto" to allow client-server certificate
; version negotiation.
; Default: auto
dtlsVersion=auto
; Verify certificates in requests. Set to False when using self-signed certificates.
; Default: False
verifyCertificate=False
; Path and filename of the certificate file. Default: ${basic.config:dataDirectory}/certs/coap_cert.pem
certificateFile=${basic.config:dataDirectory}/certs/coap_cert.pem
; Path and filename of the private key file. Default: None
privateKeyFile=${basic.config:dataDirectory}/certs/coap_key.pem
;
; Database settings
;
[database]
; Directory for the database files. Default: ./data
path=${basic.config:dataDirectory}/data
; Operate the database in in-memory mode. Attention: No data is stored persistently.
; See also command line argument --db-storage. Default: false
inMemory=${basic.config:databaseInMemory}
; Cache size in bytes, or 0 to disable caching. Default: 0
cacheSize=0
; Reset the databases on startup. See also command line argument --db-reset
; Default: False
resetOnStartup=false
; Delay in seconds before new data is written to disk to avoid trashing.
; Must be full seconds.
; Default: 1 seconds
writeDelay=1
;
; Settings for self-registrations of some resources
;
[cse.registration]
; List of AE originators that can register. This is a comma-separated list of originators.
; Wildcards (* and ?) are supported.
; Default: C*,S*
allowedAEOriginators=C*,S*
; List of CSR originators that can register. This is a comma-separated list of originators.
; Wildcards (* and ?) are supported.
; Note: No leading "/"
; Default: empty list
allowedCSROriginators=
; Check the liveliness if the registrations to the registrar CSE and also from the registree CSEs. Default: True
checkLiveliness=True
;
; Settings for Registrar CSE access
;
[cse.registrar]
; URL of the Registrar CSE. Default: no default
address=http://${basic.config:registrarCseHost}:${basic.config:registrarCsePort}
; Registrar CSE root path. Never provide a trailing /. Default: empty string
root=
; CSE-ID of the Registrar CSE. Default: None
cseID=/${basic.config:registrarCseID}
; The Registrar CSE's resource name. Default: None
resourceName=${basic.config:registrarCseName}
; Specify the serialization type that must be used for the registration to the registrar CSE.
; Allowed values: json, cbor. Default: json
serialization=json
; Wait n seconds between tries to to connect to the Registrar CSE and to check validity of Registrar CSE connections in seconds.
; Default: 30
checkInterval=30
; List of resources that are excluded when creating a registrar CSR. Default: empty list
excludeCSRAttributes=
;
; Logging settings
;
[logging]
; Enable logging to file.
; Default: False
enableFileLogging=False
; Enable logging to the screen.
; Default: True
enableScreenLogging=true
; Path to the log files.
; Default: ./logs
path=${basic.config:dataDirectory}/logs
; Loglevel. Allowed values: debug, info, warning, error, off.
; Default: debug
level=${basic.config:logLevel}
; Number of files for log rotation.
; Default: 10
count=10
; Size per log file.
; Default: 100.000 bytes
size=100000
; Maximum length of a log message. Longer messages will be truncated.
; A value of 0 means no truncation.
; Default: 1000 characters
maxLogMessageLength=1000
; Print a stack trace when logging an 'error' level message.
; Default: True
stackTraceOnError=False
; Enable logging of low-level HTTP & MQTT client events.
; Default: False
enableBindingsLogging=False
; Number of log entries that can be added to the asynchronous queue before blocking.
; A queue size of 0 means disabling the queue.
; Default: 5000 entries
queueSize=5000
; List of component names to exclude from logging
filter=werkzeug,markdown_it,asyncio
;
; Settings for resource announcements
;
[cse.announcements]
; Wait n seconds between tries to to announce resources to registered remote CSE.
; Default: 10 seconds
checkInterval=10
; Allow resource announcements to the own hosting CSE.
; Default: True
allowAnnouncementsToHostingCSE=True
; Specify a short delay in seconds before start announcing resources after a CSE
; has registered at the CSE.
; Default: 3 seconds
delayAfterRegistration=3
;
; Statistic settings
;
[cse.statistics]
; Enable or disable statistics. Default: True
enable=true
; Interval for saving statistics data to disk in seconds. Default: 60
writeInterval=60
;
; Resource defaults: ACP
;
[resource.acp]
; Default selfPermission when internally creating an ACP resource.
; Default: 51
selfPermission=51
;
; Resource defaults: Action
;
[resource.actr]
; Default for the evalControlParam attribute, when the evalMode is "continuous".
; The unit is number.
; Default: 1000
ecpContinuous=1000
; Default for the evalControlParam attribute, when the evalMode is "periodic".
; The unit is milliseconds.
; Default: 10000 ms = 10 s
ecpPeriodic=10000
;
; Resource defaults: Container
;
[resource.cnt]
; Enable/disable the default limits. Default: False
enableLimits=False
; Default for maxNrOfInstances. Default: 10
mni=10
; Default for maxByteSize. Default: 10.000 bytes
mbs=10000
[resource.grp]
; Set the time for aggregating the results of a group request before interrupting.
; The format is the time in ms. A value of 0 ms means no timeout.
; Default: 0 ms
resultExpirationTime=0
;
; Resource defaults: LocationPolicy
;
[resource.lcp]
; Default for maxNrOfInstances for the LocationPolicy's container.
; Default: 10
mni=10
; Default for maxByteSize for the LocationPolicy's container.
; Default: 10.000 bytes
mbs=10000
;
; Resource defaults: Request
;
[resource.req]
; A <request> resource's expiration time in seconds. Must be >0. Default: 60
expirationTime=60
;
; Resource defaults: Subscription
;
[resource.sub]
; Default for batchNotify/duration in seconds. Must be >0. Default: 60
batchNotifyDuration=60
;
; Resource defaults: TimeSeries
;
[resource.ts]
; Enable/disable the default limits. Default: False
enableLimits=False
; Default for maxNrOfInstances. Default: 10
mni=10
; Default for maxByteSize. Default: 10.000 bytes
mbs=10000
; Default for missingDataMaxNr. Default: 10
mdn=10
;
; Resource defaults: TimeSyncBeacon
;
[resource.tsb]
; Default timeSyncBeacon interval. This is the duration between to beacon notifications sent by the CSE
; to an AE or CSE. The format must be an ISO8601 duration.
; Default: PT1H = 1 hour
bcni=PT1H
; Default timeSyncBeacon difference threshold. When this time threshold is reached then a beacon notifications
; is sent to an AE or CSE target.
; Default: 10.0 seconds
bcnt=10.0
;
; Web UI settings
;
[webui]
; Root path of the web UI. Default: /webui
root=/webui
;
; Console settings
;
[console]
; Interval for continuously refreshing information displays. Must be > 0.0.
; Default: 2.0 seconds.
refreshInterval=2.0
; Hide certain resources from display in the console. This is a list of resource identifiers.
; Wildcards are allowed.
; Default: Empty list
hideResources=
; Set the mode how resources and their content are presented in the console's and structure endpoint tree view.
; Allowed values: normal, compact, content, contentOnly
; Default: normal
treeMode=normal
; Show virtual resources in the console's and structure endpoint's tree view.
; Default: False
treeIncludeVirtualResources=False
; Quitting the console needs to be confirmed.
; This may not work under Windows, so it should be switched off.
; Default: False
confirmQuit=False
; Set the color theme for the console. Allowed values are "dark" and "light".
; Default: dark
theme=${basic.config:consoleTheme}
; Run the CSE in headless mode, i.e. without a console and without screen logging.
; Default: False
headless=False
;
; Text UI settings
;
[textui]
; Start directly with the TUI
startWithTUI=True
; Set the color theme for the text UI. Allowed values are "dark" and "light".
; Default: same as [console].theme
theme=${console:theme}
; Interval for refreshing various views in the text UI.
; Default: 2.0
refreshInterval=2.0
;
; Scripting settings
;
[scripting]
; Add one or multiple directory paths to look for scripts, in addition to the ones in the "init" directory.
; Must be a comma-separated list.
; Default: not set
scriptDirectories=
; Enable verbose bug output during script execution, such as the current executed line.
; Default: False
verbose=False
; Set the interval to check for new files in the script (init) directory.
; 0 means disable monitoring.
; Default: 2.0 seconds
fileMonitoringInterval=2.0
; Set the timeout for script execution in seconds.
; 0.0 means no timeout.
; Default: 60.0 seconds
maxRuntime=60.0