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
Oracle:
Enabled: false
AllowedContentTypes:
- application/json
P2PNotary:
Enabled: false
UnlockWallet:

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -19,6 +19,8 @@ Parameters:
* `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
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
communication. All oracle nodes should be specified there.
* `NeoFS`: a subsection of its own for NeoFS configuration with two