docs,config: add Oracle.AllowedContentTypes option

Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgeniy Stratonikov 2021-07-12 13:23:13 +03:00
parent e936e5e295
commit 9b89e3f632
8 changed files with 16 additions and 0 deletions

View file

@ -61,6 +61,8 @@ ApplicationConfiguration:
MinPeers: 5 MinPeers: 5
Oracle: Oracle:
Enabled: false Enabled: false
AllowedContentTypes:
- application/json
P2PNotary: P2PNotary:
Enabled: false Enabled: false
UnlockWallet: UnlockWallet:

View file

@ -57,6 +57,8 @@ ApplicationConfiguration:
MinPeers: 3 MinPeers: 3
Oracle: Oracle:
Enabled: false Enabled: false
AllowedContentTypes:
- application/json
Nodes: Nodes:
- 172.200.0.1:30333 - 172.200.0.1:30333
- 172.200.0.2:30334 - 172.200.0.2:30334

View file

@ -57,6 +57,8 @@ ApplicationConfiguration:
MinPeers: 3 MinPeers: 3
Oracle: Oracle:
Enabled: false Enabled: false
AllowedContentTypes:
- application/json
Nodes: Nodes:
- 172.200.0.1:30333 - 172.200.0.1:30333
- 172.200.0.2:30334 - 172.200.0.2:30334

View file

@ -51,6 +51,8 @@ ApplicationConfiguration:
MinPeers: 0 MinPeers: 0
Oracle: Oracle:
Enabled: false Enabled: false
AllowedContentTypes:
- application/json
Nodes: Nodes:
- 172.200.0.1:30333 - 172.200.0.1:30333
RequestTimeout: 5s RequestTimeout: 5s

View file

@ -57,6 +57,8 @@ ApplicationConfiguration:
MinPeers: 3 MinPeers: 3
Oracle: Oracle:
Enabled: false Enabled: false
AllowedContentTypes:
- application/json
Nodes: Nodes:
- 172.200.0.1:30333 - 172.200.0.1:30333
- 172.200.0.2:30334 - 172.200.0.2:30334

View file

@ -57,6 +57,8 @@ ApplicationConfiguration:
MinPeers: 3 MinPeers: 3
Oracle: Oracle:
Enabled: false Enabled: false
AllowedContentTypes:
- application/json
Nodes: Nodes:
- 172.200.0.1:30333 - 172.200.0.1:30333
- 172.200.0.2:30334 - 172.200.0.2:30334

View file

@ -61,6 +61,8 @@ ApplicationConfiguration:
MinPeers: 5 MinPeers: 5
Oracle: Oracle:
Enabled: false Enabled: false
AllowedContentTypes:
- application/json
P2PNotary: P2PNotary:
Enabled: false Enabled: false
UnlockWallet: UnlockWallet:

View file

@ -19,6 +19,8 @@ Parameters:
* `AllowPrivateHost`: boolean value, enables/disables private IPs (like * `AllowPrivateHost`: boolean value, enables/disables private IPs (like
127.0.0.1 or 192.168.0.1) for https requests, it defaults to false and it's 127.0.0.1 or 192.168.0.1) for https requests, it defaults to false and it's
false on public networks, but you can enable it for private ones. false on public networks, but you can enable it for private ones.
* `AllowedContentTypes`: list of allowed MIME types. Only `application/json`
is allowed by default. Can be left empty to allow everything.
* `Nodes`: list of oracle node RPC endpoints, it's used for oracle node * `Nodes`: list of oracle node RPC endpoints, it's used for oracle node
communication. All oracle nodes should be specified there. communication. All oracle nodes should be specified there.
* `NeoFS`: a subsection of its own for NeoFS configuration with two * `NeoFS`: a subsection of its own for NeoFS configuration with two