forked from ankraft/ACME-oneM2M-CSE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathacme.ini.default
225 lines (185 loc) · 5.79 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
#
# General CSE settings
#
[cse]
# CSE type. Possible values: IN, MN, ASN. Default: IN
type=IN
# Directory of default resources to import. Default: ./init
resourcesPath=./init
# ExpirationTime before resources are removed in seconds. Default: 60*60*24*365 = 1 year
expirationDelta=31536000
# Enable access control checks. Default: True
enableACPChecks=true
# Admin ACP, resource identifier (e.g. from an imported ACP).
# Assigned by the CSE for admin access.
# Default: acpAdmin
adminACPI=acpAdmin
# Default ACP, resource identifier (e.g. from an imported ACP).
# Assigned by the CSE in case the 'acpi' attribute is missing in a resource.
# Default: acpDefault
defaultACPI=acpDefault
# Admin originator for the CSE. Default: CAdmin
originator=CAdmin
# Enable internal applications.
# See also individual application configuratins in the [app. ...] sections.
# Default: True
enableApplications=true
# Enable notifications. Default: True
enableNotifications=true
# Enable remote CSE registration. Default: True
enableRemoteCSE=true
# Enable forwarding of requests to a remote CSE. Default: True
enableTransitRequests=true
# Enable sorting of discovery results. Default: True
sortDiscoveredResources=true
#
# Settings for remote CSE access
#
[cse.remote]
# URL of the remote CSE. Default: None.
address=http://127.0.0.1:8081
# Remote CSE root path. Default: /
root=/
# CSE-ID of the remote CSE. Default: None
cseid=in-cse
# Originator for registering to the remote CSE. Default: CAdmin
originator=CAdmin
# Wait n seconds between tries to to connect to the remote CSE and to check validity of remote CSE connections in seconds.
# Default: 30
checkInterval=30
#
# Settings for statistics
#
[cse.statistics]
# Intervall for saving statistics data to disk in seconds. Default: 60
writeIntervall=60
#
# Resource defaults: ACP
#
[cse.resource.acp]
# Default permission when creating an ACP resource. Default: 62
permission=63
# Default selfPermission when creating an ACP resource. Default: 51
selfPermission=51
# Always add the CSE's "admin" originator. Default: true
addAdminOrignator=true
#
# Resource defaults: AE
#
[cse.resource.ae]
# Create a new ACP resource when an AE registers. Default: True
createACP=true
#
# Resource defaults: Container
#
[cse.resource.cnt]
# Default for maxNrOfInstances. Default: 10
mni=10
# Default for maxByteSize. Default: 10.000
mbs=10000
#
# Web UI settings
#
[cse.webui]
# Enable the web UI. Default: True
enable=true
# Root path of the web UI. Default: /webui
root=/webui
#
# HTTP Server settings
#
[server.http]
# Port to listen to. Default: 8080
port=8080
# Interface to listen to. Use 0.0.0.0 for all interfaces. Default:127.0.0.1
listenIF=127.0.0.1
# Own address. Should be a local/public address. Default: http://127.0.0.1:8080
address=http://127.0.0.1:8080
# CSE Server root. Always provide a trailing /. Default: /
root=/
# Run the http server single- or multi-threaded. Default: true
multiThread=true
#
# ID Mappings
# This section defines mappings for URI paths to IDs in the CSE. Mappings
# can be used to provide a more convenient way to access the CSE's resources.
# Each line specifies a mapping, where the key specifies a new path,
# and the value represents the mapping to a request (including optional arguments).
# The http server redirects (307) a request to one of the new paths to the
# repective request mapping.
# Please note, that the "root" path in [server.http] prefixes both the new
# path and the mapping.
#
[server.http.mappings]
/access/v1/devices=/cse-mn?ty=14&fu=1&fo=2&rcn=8
/access/v1/apps=/id-mn?ty=2&fu=1&fo=2&rcn=8
/access/v1/devices/battery=/id-mn?ty=14&mgd=1006&fu=1&fo=2&rcn=8
#
# Database settings
#
[database]
# Directory for the database files. Default: ./data
path=./data
# Operate the database in in-memory mode. Attention: No data is stored persistently.
# See also command line argument --db-storage. Default: false
inMemory=false
# Cache size in bytes, or 0 to disable caching. Default: 0
cacheSize=0
# Reset the databases at startup. See also command line argument --db-reset
# Default: False
resetAtStartup=false
#
# Logging settings
#
[logging]
# Enable logging. Default: True
enable=true
# Enable logging to file. Default: True
enableFileLogging=true
# Basename of the log file. Default: ./logs/cse.log
file=./logs/cse.log
# Loglevel. Possible values: debug, info, warning, error. Default debug
level=debug
# Number of files for log rotation. Default: 10
count=10
# Size per log file. Default: 100.000 bytes
size=100000
###############################################################################
#
# Configurations for the statistics AE
#
[app.statistics]
# Enable the statistics AE. Default: True
enable=true
# Resource name of the statistics AE. Default: statistics
aeRN=statistics
# App-ID of the statistics AE. Default: ae-statistics
aeAPI=ae-statistics
# Resource name of the statistics flexContainer. Default: statistics
fcntRN=statistics
# Content Definition of the AE's flexContainer. This is a proprietary CND. Default: acme.statistics
fcntCND=acme.statistics
# Element type of the AE's flexContainer. This is a proprietary type. Default: acme:csest
fcntType=acme:csest
# Originator for requests to the CSE. Default: CStatistics
originator=C
# Wait n seconds between updates of the AE in seconds. Default: 10
intervall=10
#
# Configurations for the CSE Node app
#
[app.csenode]
# Enable the CSE Node. Default: True
enable=true
# Resource name of the CSE Node. Default: cse-node
nodeRN=cse-node
# Node-ID of the CSE Node. Default: cse-node
nodeID=cse-node
# Originator for requests to the CSE. Default: CAdmin
originator=CAdmin
# Battery level indicates as "low" in percent. Default: 20
batteryLowLevel=20
# batter level indicates as "fully charged" in percent. Default: 100
batteryChargedLevel=100
# Wait n seconds between updates of the node and sub-mgmtObjs in seconds. Default: 60
intervall=60