From 9b89e3f632029e49b6f8e5a7207ed4871c387e0f Mon Sep 17 00:00:00 2001 From: Evgeniy Stratonikov Date: Mon, 12 Jul 2021 13:23:13 +0300 Subject: [PATCH] docs,config: add `Oracle.AllowedContentTypes` option Signed-off-by: Evgeniy Stratonikov --- config/protocol.mainnet.yml | 2 ++ config/protocol.privnet.docker.four.yml | 2 ++ config/protocol.privnet.docker.one.yml | 2 ++ config/protocol.privnet.docker.single.yml | 2 ++ config/protocol.privnet.docker.three.yml | 2 ++ config/protocol.privnet.docker.two.yml | 2 ++ config/protocol.testnet.yml | 2 ++ docs/oracle.md | 2 ++ 8 files changed, 16 insertions(+) diff --git a/config/protocol.mainnet.yml b/config/protocol.mainnet.yml index 1eaef7375..65c107194 100644 --- a/config/protocol.mainnet.yml +++ b/config/protocol.mainnet.yml @@ -61,6 +61,8 @@ ApplicationConfiguration: MinPeers: 5 Oracle: Enabled: false + AllowedContentTypes: + - application/json P2PNotary: Enabled: false UnlockWallet: diff --git a/config/protocol.privnet.docker.four.yml b/config/protocol.privnet.docker.four.yml index 926a45eda..23a0e1ad5 100644 --- a/config/protocol.privnet.docker.four.yml +++ b/config/protocol.privnet.docker.four.yml @@ -57,6 +57,8 @@ ApplicationConfiguration: MinPeers: 3 Oracle: Enabled: false + AllowedContentTypes: + - application/json Nodes: - 172.200.0.1:30333 - 172.200.0.2:30334 diff --git a/config/protocol.privnet.docker.one.yml b/config/protocol.privnet.docker.one.yml index 375fe2df4..e59201455 100644 --- a/config/protocol.privnet.docker.one.yml +++ b/config/protocol.privnet.docker.one.yml @@ -57,6 +57,8 @@ ApplicationConfiguration: MinPeers: 3 Oracle: Enabled: false + AllowedContentTypes: + - application/json Nodes: - 172.200.0.1:30333 - 172.200.0.2:30334 diff --git a/config/protocol.privnet.docker.single.yml b/config/protocol.privnet.docker.single.yml index 474207422..fa445c11c 100644 --- a/config/protocol.privnet.docker.single.yml +++ b/config/protocol.privnet.docker.single.yml @@ -51,6 +51,8 @@ ApplicationConfiguration: MinPeers: 0 Oracle: Enabled: false + AllowedContentTypes: + - application/json Nodes: - 172.200.0.1:30333 RequestTimeout: 5s diff --git a/config/protocol.privnet.docker.three.yml b/config/protocol.privnet.docker.three.yml index 3c0fa1c8e..9544bc469 100644 --- a/config/protocol.privnet.docker.three.yml +++ b/config/protocol.privnet.docker.three.yml @@ -57,6 +57,8 @@ ApplicationConfiguration: MinPeers: 3 Oracle: Enabled: false + AllowedContentTypes: + - application/json Nodes: - 172.200.0.1:30333 - 172.200.0.2:30334 diff --git a/config/protocol.privnet.docker.two.yml b/config/protocol.privnet.docker.two.yml index a0a1855d3..435d98a76 100644 --- a/config/protocol.privnet.docker.two.yml +++ b/config/protocol.privnet.docker.two.yml @@ -57,6 +57,8 @@ ApplicationConfiguration: MinPeers: 3 Oracle: Enabled: false + AllowedContentTypes: + - application/json Nodes: - 172.200.0.1:30333 - 172.200.0.2:30334 diff --git a/config/protocol.testnet.yml b/config/protocol.testnet.yml index 2f1411bef..2275060ab 100644 --- a/config/protocol.testnet.yml +++ b/config/protocol.testnet.yml @@ -61,6 +61,8 @@ ApplicationConfiguration: MinPeers: 5 Oracle: Enabled: false + AllowedContentTypes: + - application/json P2PNotary: Enabled: false UnlockWallet: diff --git a/docs/oracle.md b/docs/oracle.md index 8dd02c1d8..023320729 100644 --- a/docs/oracle.md +++ b/docs/oracle.md @@ -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