-
Notifications
You must be signed in to change notification settings - Fork 5
Configuration
Greg Buehler edited this page Apr 8, 2022
·
4 revisions
You can find the default configuration here. The configuration is not true json as comments are permitted.
This is the core server configuration.
Key | Default | Description |
---|---|---|
data |
./ | The location to store data. This location is used for the database and where certificates are generated |
persist_messages |
true | Persist messages to the local database. Disabling this may improve throughput if the database is on a slow storage medium. |
name |
hostname | This is the node name provided to the server. If not specified, the hostname will be used. |
This section controls the core API experience.
Key | Default | Description |
---|---|---|
port |
8080 | The port to listen on |
swagger |
true | Toggles the api documentation endpoint (/swagger ) |
ssl |
false | Use SSL/TLS to secure the connection |
cert |
server.p12 | The path to the certificate if using SSL |
passphrase |
atakatak | The passphrase for the certificate |
This section controls the web sockets experience.
Key | Default | Description |
---|---|---|
enabled |
true | Toggles the web sockets experience |
port |
5000 | The port to listen on |
ssl |
false | Use SSL/TLS to secure the connection |
cert |
server.p12 | The path to the certificate if using SSL |
passphrase |
atakatak | The passphrase for the certificate |
This section controls the CoT routing experience. OpenTakRouter is capable of hosting both tcp and tls servers simultaneously.
This section controls the TCP endpoint for CoT traffic.
Key | Default | Description |
---|---|---|
enabled |
true | Toggles the TCP CoT endpoint |
port |
58087 | The port to listen on |
This section controls the TLS endpoint for CoT traffic.
Key | Default | Description |
---|---|---|
enabled |
true | Toggles the TLS CoT endpoint |
port |
58089 | The port to listen on |
cert |
server.p12 | The path to the certificate if using SSL |
passphrase |
atakatak | The passphrase for the certificate |
This section lists peers for federation.
Key | Default | Description |
---|---|---|
name |
None | The name of the peer |
mode |
duplex | The mode of the connection. |
duplex - Send and Receive |
||
receive - Only receive events, do not retransmit |
||
transmit - Only retransmit events, ignore incoming events |
||
address |
The hostname or ip address of the peer | |
port |
8080 | The port to connect on |
ssl |
false | Use SSL for the peer connection |
cert |
server.p12 | The path to the certificate if using SSL |
passphrase |
atakatak | The passphrase for the certificate |
Example peers configuration:
"peers": [
{
"name": "foo",
"mode": "duplex",
"address": "foo.example.com",
"port": 8087,
"ssl": true,
"cert": "/certs/example/server.p12",
"passphrase": "atakatak"
},
{
"name": "bar",
"mode": "transmit",
"address": "foo.example.com",
"port": 8087,
},
]