cosmos 4.4.1-java → 4.5.2-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/build_v4.yml +33 -0
- data/Dockerfile +10 -4
- data/Gemfile +1 -1
- data/Manifest.txt +26 -2
- data/README.md +4 -1
- data/Rakefile +33 -27
- data/autohotkey/tools/cmd_extractor.ahk +11 -9
- data/autohotkey/tools/cmd_sender.ahk +1 -1
- data/autohotkey/tools/cmd_sequence.ahk +1 -1
- data/autohotkey/tools/data_viewer.ahk +1 -1
- data/autohotkey/tools/limits_monitor.ahk +1 -1
- data/autohotkey/tools/packet_viewer.ahk +1 -1
- data/autohotkey/tools/script_runner.ahk +1 -1
- data/autohotkey/tools/test_runner2.ahk +1 -1
- data/autohotkey/tools/tlm_grapher.ahk +1 -1
- data/autohotkey/tools/tlm_grapher3.ahk +1 -1
- data/autohotkey/tools/tlm_viewer.ahk +1 -1
- data/autohotkey/tools/tlm_viewer2.ahk +1 -1
- data/autohotkey/tools/tlm_viewer5.ahk +1 -1
- data/bin/rubysloc +73 -28
- data/bin/xtce_converter +1 -1
- data/cosmos.gemspec +6 -12
- data/data/config/interface_modifiers.yaml +3 -2
- data/data/config/system.yaml +81 -24
- data/data/crc.txt +435 -435
- data/demo/Rakefile +4 -4
- data/demo/config/data/crc.txt +250 -250
- data/demo/config/system/system.txt +15 -7
- data/demo/config/system/system2.txt +15 -7
- data/demo/config/system/system_alt_ports.txt +15 -7
- data/demo/config/targets/INST/cmd_tlm/inst_cmds.txt +1 -1
- data/demo/config/tools/handbook_creator/default_toc.xsl +59 -59
- data/ext/cosmos/ext/buffered_file/buffered_file.c +2 -2
- data/ext/cosmos/ext/config_parser/config_parser.c +1 -2
- data/ext/cosmos/ext/line_graph/line_graph.c +53 -94
- data/ext/cosmos/ext/packet/packet.c +0 -6
- data/ext/cosmos/ext/platform/platform.c +56 -21
- data/ext/cosmos/ext/polynomial_conversion/polynomial_conversion.c +4 -8
- data/ext/cosmos/ext/structure/structure.c +12 -0
- data/extensions/vscode/.gitignore +4 -0
- data/extensions/vscode/.vscode/launch.json +32 -0
- data/extensions/vscode/.vscode/settings.json +13 -0
- data/extensions/vscode/.vscode/tasks.json +79 -0
- data/extensions/vscode/License.txt +879 -0
- data/extensions/vscode/README.md +9 -0
- data/extensions/vscode/client/License.txt +879 -0
- data/extensions/vscode/client/README.md +39 -0
- data/extensions/vscode/client/cosmos.configuration.json +23 -0
- data/extensions/vscode/client/images/icon.png +0 -0
- data/extensions/vscode/client/package-lock.json +414 -0
- data/extensions/vscode/client/package.json +105 -0
- data/extensions/vscode/client/src/extension.ts +132 -0
- data/extensions/vscode/client/src/screen_preview.rb +25 -0
- data/extensions/vscode/client/syntaxes/cosmos.tmLanguage.json +219 -0
- data/extensions/vscode/client/tsconfig.json +17 -0
- data/extensions/vscode/package-lock.json +26 -0
- data/extensions/vscode/package.json +35 -0
- data/extensions/vscode/server/License.txt +879 -0
- data/extensions/vscode/server/package-lock.json +236 -0
- data/extensions/vscode/server/package.json +29 -0
- data/extensions/vscode/server/src/server.ts +59 -0
- data/extensions/vscode/server/tsconfig.json +16 -0
- data/install/Rakefile +4 -4
- data/install/config/data/crc.txt +145 -145
- data/install/config/system/system.txt +15 -7
- data/install/config/tools/handbook_creator/default_toc.xsl +59 -59
- data/lib/cosmos/config/config_parser.rb +2 -10
- data/lib/cosmos/core_ext/class.rb +10 -0
- data/lib/cosmos/core_ext/time.rb +5 -3
- data/lib/cosmos/dart/examples/dart_decom_client.rb +1 -1
- data/lib/cosmos/dart/lib/dart_common.rb +3 -3
- data/lib/cosmos/dart/lib/dart_decommutator.rb +4 -4
- data/lib/cosmos/dart/processes/dart_decom_server.rb +1 -1
- data/lib/cosmos/dart/processes/dart_master.rb +1 -1
- data/lib/cosmos/dart/spec/dart/dart_database_cleaner_spec.rb +2 -2
- data/lib/cosmos/gui/qt.rb +10 -10
- data/lib/cosmos/gui/qt_tool.rb +17 -12
- data/lib/cosmos/gui/text/completion_text_edit.rb +2 -0
- data/lib/cosmos/gui/widgets/dart_meta_frame.rb +1 -1
- data/lib/cosmos/interfaces/dart_status_interface.rb +1 -1
- data/lib/cosmos/interfaces/linc_interface.rb +3 -3
- data/lib/cosmos/interfaces/protocols/burst_protocol.rb +1 -1
- data/lib/cosmos/interfaces/protocols/crc_protocol.rb +1 -1
- data/lib/cosmos/interfaces/protocols/template_protocol.rb +3 -3
- data/lib/cosmos/interfaces/serial_interface.rb +7 -1
- data/lib/cosmos/interfaces/stream_interface.rb +1 -1
- data/lib/cosmos/interfaces/tcpip_server_interface.rb +16 -16
- data/lib/cosmos/io/io_multiplexer.rb +6 -2
- data/lib/cosmos/io/json_drb.rb +3 -11
- data/lib/cosmos/io/json_drb_object.rb +7 -2
- data/lib/cosmos/io/json_drb_rack.rb +25 -5
- data/lib/cosmos/io/json_rpc.rb +1 -1
- data/lib/cosmos/io/posix_serial_driver.rb +60 -22
- data/lib/cosmos/io/serial_driver.rb +11 -8
- data/lib/cosmos/io/win32_serial_driver.rb +8 -1
- data/lib/cosmos/packets/packet.rb +8 -8
- data/lib/cosmos/packets/packet_config.rb +1 -1
- data/lib/cosmos/packets/packet_item_limits.rb +2 -14
- data/lib/cosmos/packets/parsers/xtce_converter.rb +10 -10
- data/lib/cosmos/packets/parsers/xtce_parser.rb +3 -0
- data/lib/cosmos/packets/structure.rb +18 -5
- data/lib/cosmos/packets/structure_item.rb +4 -21
- data/lib/cosmos/script/api_shared.rb +18 -1
- data/lib/cosmos/script/extract.rb +1 -1
- data/lib/cosmos/script/script.rb +4 -11
- data/lib/cosmos/streams/serial_stream.rb +11 -6
- data/lib/cosmos/system/system.rb +47 -13
- data/lib/cosmos/tools/cmd_sender/cmd_param_table_item_delegate.rb +15 -0
- data/lib/cosmos/tools/cmd_sender/cmd_params.rb +25 -3
- data/lib/cosmos/tools/cmd_sender/cmd_sender.rb +7 -0
- data/lib/cosmos/tools/cmd_sequence/sequence_item.rb +0 -5
- data/lib/cosmos/tools/cmd_tlm_server/api.rb +10 -8
- data/lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server.rb +2 -2
- data/lib/cosmos/tools/cmd_tlm_server/gui/logging_tab.rb +1 -1
- data/lib/cosmos/tools/cmd_tlm_server/interface_thread.rb +29 -26
- data/lib/cosmos/tools/cmd_tlm_server/limits_groups_background_task.rb +1 -1
- data/lib/cosmos/tools/cmd_tlm_server/router_thread.rb +5 -0
- data/lib/cosmos/tools/config_editor/config_editor.rb +1 -1
- data/lib/cosmos/tools/handbook_creator/handbook_creator.rb +1 -1
- data/lib/cosmos/tools/handbook_creator/handbook_creator_config.rb +1 -1
- data/lib/cosmos/tools/script_runner/script_runner_frame.rb +5 -2
- data/lib/cosmos/tools/test_runner/test.rb +1 -1
- data/lib/cosmos/tools/test_runner/test_runner.rb +4 -4
- data/lib/cosmos/tools/tlm_extractor/tlm_extractor.rb +3 -3
- data/lib/cosmos/tools/tlm_extractor/tlm_extractor_config.rb +1 -4
- data/lib/cosmos/tools/tlm_extractor/tlm_extractor_processor.rb +3 -3
- data/lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_dart_thread.rb +1 -1
- data/lib/cosmos/tools/tlm_viewer/tlm_viewer.rb +2 -2
- data/lib/cosmos/tools/tlm_viewer/widgets/canvasdot_widget.rb +2 -0
- data/lib/cosmos/top_level.rb +1 -1
- data/lib/cosmos/utilities/simulated_target.rb +1 -1
- data/lib/cosmos/version.rb +5 -5
- data/make_gems.sh +1 -1
- data/spec/core_ext/class_spec.rb +54 -0
- data/spec/core_ext/time_spec.rb +4 -0
- data/spec/gui/qt_spec.rb +1 -1
- data/spec/gui/utilities/script_module_gui_spec.rb +1 -1
- data/spec/interfaces/linc_interface_spec.rb +1 -1
- data/spec/interfaces/serial_interface_spec.rb +1 -5
- data/spec/io/json_drb_rack_spec.rb +166 -0
- data/spec/io/json_rpc_spec.rb +4 -5
- data/spec/io/posix_serial_driver_spec.rb +87 -0
- data/spec/io/win32_serial_driver_spec.rb +17 -1
- data/spec/packet_logs/packet_log_reader_spec.rb +34 -35
- data/spec/packets/packet_item_limits_spec.rb +6 -33
- data/spec/packets/structure_item_spec.rb +3 -21
- data/spec/script/extract_spec.rb +4 -1
- data/spec/system/system_spec.rb +109 -1
- data/spec/tools/cmd_tlm_server/api_spec.rb +12 -12
- data/spec/tools/cmd_tlm_server/background_tasks_spec.rb +2 -2
- data/spec/tools/cmd_tlm_server/interface_thread_spec.rb +4 -3
- data/spec/tools/cmd_tlm_server/router_thread_spec.rb +2 -3
- data/spec/top_level/top_level_spec.rb +2 -2
- data/spec/utilities/logger_spec.rb +3 -3
- data/test/performance/Rakefile +4 -4
- data/test/performance/config/data/crc.txt +67 -48
- metadata +53 -9
- data/.coveralls.yml +0 -1
- data/.travis.yml +0 -16
data/data/config/system.yaml
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
AUTO_DECLARE_TARGETS:
|
|
3
3
|
summary: Automatically load all the target folders under config/targets into the system
|
|
4
|
-
description:
|
|
4
|
+
description:
|
|
5
|
+
When automatically discovering target folders the COSMOS naming convention
|
|
5
6
|
must be followed. Target folders must be uppercase and be named according to how
|
|
6
7
|
COSMOS will access them. For example, if you create a config/targets/INST directory,
|
|
7
8
|
COSMOS will create a target named 'INST' which is how it will be referenced.
|
|
@@ -9,7 +10,8 @@ AUTO_DECLARE_TARGETS:
|
|
|
9
10
|
DECLARE_TARGET keyword.
|
|
10
11
|
DECLARE_TARGET:
|
|
11
12
|
summary: Declare a COSMOS target and name it
|
|
12
|
-
description:
|
|
13
|
+
description:
|
|
14
|
+
Declare target is used in place of AUTO_DECLARE_TARGETS to give more
|
|
13
15
|
fine grained control over how the target folder is loaded and named within COSMOS.
|
|
14
16
|
This is required if AUTO_DECLARE_TARGET is not present.
|
|
15
17
|
example: DECLARE_TARGET INST INST2 inst.txt
|
|
@@ -26,7 +28,8 @@ DECLARE_TARGET:
|
|
|
26
28
|
the target name will be the directory name given above.
|
|
27
29
|
- name: Target Filename
|
|
28
30
|
required: false
|
|
29
|
-
description:
|
|
31
|
+
description:
|
|
32
|
+
The name of the file in the target directory which contains the
|
|
30
33
|
configuration information for the target. By default this is 'target.txt'
|
|
31
34
|
but if you want to rename this you need to set this parameter.
|
|
32
35
|
DECLARE_GEM_TARGET:
|
|
@@ -38,7 +41,8 @@ DECLARE_GEM_TARGET:
|
|
|
38
41
|
parameters:
|
|
39
42
|
- name: Gem Name
|
|
40
43
|
required: true
|
|
41
|
-
description:
|
|
44
|
+
description:
|
|
45
|
+
The COSMOS gem name which must be cosmos-<gem-name> where <gem-name>
|
|
42
46
|
is the descriptive gem name. In the above example, the target will be named
|
|
43
47
|
'GEM-NAME' (note the cosmos- prefix is stripped off).
|
|
44
48
|
values: .+
|
|
@@ -49,7 +53,8 @@ DECLARE_GEM_TARGET:
|
|
|
49
53
|
the target name will be the gem name as described above.
|
|
50
54
|
- name: Target Filename
|
|
51
55
|
required: false
|
|
52
|
-
description:
|
|
56
|
+
description:
|
|
57
|
+
The name of the file in the target directory which contains the
|
|
53
58
|
configuration information for the target. By default this is 'target.txt'
|
|
54
59
|
but if you want to rename this you need to set this parameter.
|
|
55
60
|
DECLARE_GEM_MULTI_TARGET:
|
|
@@ -64,7 +69,8 @@ DECLARE_GEM_MULTI_TARGET:
|
|
|
64
69
|
parameters:
|
|
65
70
|
- name: Gem Name
|
|
66
71
|
required: true
|
|
67
|
-
description:
|
|
72
|
+
description:
|
|
73
|
+
The COSMOS gem name which must be cosmos-<gem-name> where <gem-name>
|
|
68
74
|
is the descriptive gem name. In the above example, the target will be named
|
|
69
75
|
'GEM-NAME' (note the cosmos- prefix is stripped off).
|
|
70
76
|
values: .+
|
|
@@ -80,12 +86,14 @@ DECLARE_GEM_MULTI_TARGET:
|
|
|
80
86
|
the target name will be the gem name as described above.
|
|
81
87
|
- name: Target Filename
|
|
82
88
|
required: false
|
|
83
|
-
description:
|
|
89
|
+
description:
|
|
90
|
+
The name of the file in the target directory which contains the
|
|
84
91
|
configuration information for the target. By default this is 'target.txt'
|
|
85
92
|
but if you want to rename this you need to set this parameter.
|
|
86
93
|
PORT:
|
|
87
94
|
summary: Set a Server Port
|
|
88
|
-
description:
|
|
95
|
+
description:
|
|
96
|
+
Port is used to set the default ports used by the Command and Telemetry Server.
|
|
89
97
|
It is not necessary to set this option unless you wish to override the defaults
|
|
90
98
|
(given in the example usage). Overriding ports is necessary if you want to run
|
|
91
99
|
two Command and Telemetry Servers on the same computer simultaneously.
|
|
@@ -96,7 +104,8 @@ PORT:
|
|
|
96
104
|
parameters:
|
|
97
105
|
- name: Port Name
|
|
98
106
|
required: true
|
|
99
|
-
description:
|
|
107
|
+
description:
|
|
108
|
+
CTS_API - This port is what tools connect to to communicate with the COSMOS Scripting API.
|
|
100
109
|
TLMVIEWER_API - This port is used to remotely open and close telemetry screens in Telemetry Viewer.
|
|
101
110
|
CTS_PREIDENTIFIED - This port provides access to a preidentified stream of all telemetry packets
|
|
102
111
|
in the system. This is currently used by Telemetry Grapher and can be used to chain Command
|
|
@@ -114,7 +123,8 @@ LISTEN_HOST:
|
|
|
114
123
|
parameters:
|
|
115
124
|
- name: Host Port Name
|
|
116
125
|
required: true
|
|
117
|
-
description:
|
|
126
|
+
description:
|
|
127
|
+
CTS_API - This port is what tools connect to to communicate with the COSMOS Scripting API.
|
|
118
128
|
TLMVIEWER_API - This port is used to remotely open and close telemetry screens in Telemetry Viewer.
|
|
119
129
|
CTS_PREIDENTIFIED - This port provides access to a preidentified stream of all telemetry packets
|
|
120
130
|
in the system. This is currently used by Telemetry Grapher and can be used to chain Command
|
|
@@ -124,7 +134,8 @@ LISTEN_HOST:
|
|
|
124
134
|
values: <%= %w(CTS_API TLMVIEWER_API CTS_PREIDENTIFIED CTS_CMD_ROUTER) %>
|
|
125
135
|
- name: Host Value
|
|
126
136
|
required: true
|
|
127
|
-
description:
|
|
137
|
+
description:
|
|
138
|
+
The IP address or host name to bind the Host Port Name to. By default,
|
|
128
139
|
the CTS_API and TLMVIEWER_API are bound to localhost meaning that only tools
|
|
129
140
|
on the same machine can connect. By default, CTS_PREIDENTIFIED and CTS_CMD_ROUTER
|
|
130
141
|
are bound to '0.0.0.0' to allow for tools on any machines to connect. This
|
|
@@ -136,7 +147,8 @@ CONNECT_HOST:
|
|
|
136
147
|
parameters:
|
|
137
148
|
- name: Host Port Name
|
|
138
149
|
required: true
|
|
139
|
-
description:
|
|
150
|
+
description:
|
|
151
|
+
CTS_API - This port is what tools connect to to communicate with the COSMOS Scripting API.
|
|
140
152
|
TLMVIEWER_API - This port is used to remotely open and close telemetry screens in Telemetry Viewer.
|
|
141
153
|
CTS_PREIDENTIFIED - This port provides access to a preidentified stream of all telemetry packets
|
|
142
154
|
in the system. This is currently used by Telemetry Grapher and can be used to chain Command
|
|
@@ -146,15 +158,18 @@ CONNECT_HOST:
|
|
|
146
158
|
values: <%= %w(CTS_API TLMVIEWER_API CTS_PREIDENTIFIED CTS_CMD_ROUTER) %>
|
|
147
159
|
- name: Host Value
|
|
148
160
|
required: true
|
|
149
|
-
description:
|
|
161
|
+
description:
|
|
162
|
+
The IP address or host name to connect tools to. By default all
|
|
150
163
|
ports are bound to localhost so all tools connect to the local machine.
|
|
151
164
|
values: .+
|
|
152
165
|
PATH:
|
|
153
166
|
summary: Set a Server Path
|
|
154
|
-
description:
|
|
167
|
+
description:
|
|
168
|
+
Path is used to set the default paths used by the Command and Telemetry Server
|
|
155
169
|
to access or create files. It is not necessary to set this option unless you wish to
|
|
156
170
|
override the defaults (given in the example usage).
|
|
157
|
-
warning:
|
|
171
|
+
warning:
|
|
172
|
+
The PROCEDURES path must be set for Script Runner and Test Runner to locate your
|
|
158
173
|
procedure files. You can add multiple 'PATH PROCEDURES' lines to your configuration file
|
|
159
174
|
to set multiple locations.
|
|
160
175
|
example: |
|
|
@@ -205,7 +220,8 @@ DEFAULT_PACKET_LOG_READER:
|
|
|
205
220
|
since: 4.0.0
|
|
206
221
|
STALENESS_SECONDS:
|
|
207
222
|
summary: Number of seconds before marking the packet stale
|
|
208
|
-
description:
|
|
223
|
+
description:
|
|
224
|
+
A stale packet is identified in telemetry screens by all the telemetry
|
|
209
225
|
items in the stale packet being colored purple..
|
|
210
226
|
example: STALENESS_SECONDS 30 # Default
|
|
211
227
|
parameters:
|
|
@@ -227,7 +243,8 @@ DISABLE_DNS:
|
|
|
227
243
|
As of COSMOS 3.5.0 the default is to not use DNS
|
|
228
244
|
ENABLE_SOUND:
|
|
229
245
|
summary: Enable audible sounds when popups occur
|
|
230
|
-
description:
|
|
246
|
+
description:
|
|
247
|
+
Enable sound makes any prompts that occur in ScriptRunner/TestRunner
|
|
231
248
|
make an audible sound when they popup to alert the operator of needed input.
|
|
232
249
|
since: 3.5.0
|
|
233
250
|
ALLOW_ACCESS:
|
|
@@ -236,12 +253,14 @@ ALLOW_ACCESS:
|
|
|
236
253
|
parameters:
|
|
237
254
|
- name: Name or IP Address
|
|
238
255
|
required: true
|
|
239
|
-
description:
|
|
256
|
+
description:
|
|
257
|
+
Machine name to allow access or you can specify 'ALL' to allow
|
|
240
258
|
all machines access
|
|
241
259
|
values: .+
|
|
242
260
|
META_INIT:
|
|
243
261
|
summary: Specify a file to initialize the SYSTEM META packet
|
|
244
|
-
description:
|
|
262
|
+
description:
|
|
263
|
+
Filename should be a text file with key value pairs where the keyword
|
|
245
264
|
matches an item in the SYSTEM META packet. Note you do not have to specify ALL
|
|
246
265
|
the items in the SYSTEM META packet.
|
|
247
266
|
since: 4.0.0
|
|
@@ -252,7 +271,8 @@ META_INIT:
|
|
|
252
271
|
values: .+
|
|
253
272
|
TIME_ZONE_UTC:
|
|
254
273
|
summary: Report all times as UTC
|
|
255
|
-
description:
|
|
274
|
+
description:
|
|
275
|
+
COSMOS will report all times as UTC time. If this keyword is not used,
|
|
256
276
|
COSMOS will report all times as local times, where the local time zone is determined
|
|
257
277
|
automatically by Ruby based upon the operating system time settings. This setting
|
|
258
278
|
affects packet receive times, timestamped log filenames, message logs,
|
|
@@ -260,7 +280,8 @@ TIME_ZONE_UTC:
|
|
|
260
280
|
since: 3.10.0
|
|
261
281
|
ADD_HASH_FILE:
|
|
262
282
|
summary: Add a file to the hashing sum calculation
|
|
263
|
-
description:
|
|
283
|
+
description:
|
|
284
|
+
Adds a file to the set of files used in marshal file hashing sum calculation.
|
|
264
285
|
Upon startup, COSMOS calculates a hashing sum over the command/telemetry definition files
|
|
265
286
|
for all targets. After the definitions have been processed, COSMOS saves the resulting
|
|
266
287
|
objects as marshal files in a folder with the hashing sum as part of the name.
|
|
@@ -288,11 +309,11 @@ CLASSIFICATION:
|
|
|
288
309
|
- name: Display Text
|
|
289
310
|
required: true
|
|
290
311
|
description: The text to display in the classification banner
|
|
291
|
-
values:
|
|
312
|
+
values: ".*"
|
|
292
313
|
- name: Color Name | Red Hex
|
|
293
314
|
required: true
|
|
294
315
|
description: The color name or the red value of a RGB triplet
|
|
295
|
-
values:
|
|
316
|
+
values: ".*"
|
|
296
317
|
- name: Green Hex
|
|
297
318
|
required: false
|
|
298
319
|
description: The green value of a RGB triplet
|
|
@@ -303,7 +324,8 @@ CLASSIFICATION:
|
|
|
303
324
|
values: '\d+'
|
|
304
325
|
HASHING_ALGORITHM:
|
|
305
326
|
summary: Specify which Ruby Digest hashing algorithm to use
|
|
306
|
-
description:
|
|
327
|
+
description:
|
|
328
|
+
Set the hashing algorithm used for config hashing, tlm_viewer hashing, and
|
|
307
329
|
script hashing. COSMOS will truncate the resulting hash string down to 32 characters
|
|
308
330
|
since: 4.4.0
|
|
309
331
|
example: HASHING_ALGORITHM SHA256
|
|
@@ -312,3 +334,38 @@ HASHING_ALGORITHM:
|
|
|
312
334
|
required: true
|
|
313
335
|
description: Digest algorithm, one of MD5, RMD160, SHA1, SHA256, SHA384, SHA512
|
|
314
336
|
values: .+
|
|
337
|
+
ALLOW_ROUTER_COMMANDING:
|
|
338
|
+
summary: Allow routers to receive and forward commands to interfaces
|
|
339
|
+
since: 4.5.0
|
|
340
|
+
example: ALLOW_ROUTER_COMMANDING
|
|
341
|
+
X_CSRF_TOKEN:
|
|
342
|
+
summary: Secret token passed with API calls
|
|
343
|
+
since: 4.5.0
|
|
344
|
+
example: X_CSRF_TOKEN Secret
|
|
345
|
+
parameters:
|
|
346
|
+
- name: token
|
|
347
|
+
required: true
|
|
348
|
+
description: Token passed with api calls
|
|
349
|
+
values: .+
|
|
350
|
+
ALLOW_ORIGIN:
|
|
351
|
+
summary: Allow a specific HTTP Origin header in Api calls
|
|
352
|
+
description: This keyword should only be used if COSMOS needs to be commanded from a web server.
|
|
353
|
+
since: 4.5.0
|
|
354
|
+
example: ALLOW_ORIGIN 1.2.4.4:8080
|
|
355
|
+
parameters:
|
|
356
|
+
- name: origin
|
|
357
|
+
required: true
|
|
358
|
+
description: Hostname colon port of origin
|
|
359
|
+
values: .+
|
|
360
|
+
ALLOW_HOST:
|
|
361
|
+
summary: Allow a specific HTTP Host header in Api calls
|
|
362
|
+
description:
|
|
363
|
+
By default includes ['127.0.0.1:7777', '127.0.0.1:7778', '127.0.0.1:7877', '127.0.0.1:8779', '127.0.0.1:8780'].
|
|
364
|
+
API Ports changed by a PORT line will also be added automatically. If you need external connections you must add your ip and
|
|
365
|
+
these ports to allow external access to work for apis
|
|
366
|
+
example: ALLOW_HOST 1.2.4.4:7777
|
|
367
|
+
parameters:
|
|
368
|
+
- name: host
|
|
369
|
+
required: true
|
|
370
|
+
description: Hostname colon port of host
|
|
371
|
+
values: .+
|