increase headers, query string for smart contract verification

pull/2264/head
Ayrat Badykov 5 years ago
parent 8acd1c4fd2
commit 3ee75c680b
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 6
      apps/block_scout_web/config/config.exs
  2. 12
      apps/block_scout_web/config/dev.exs
  3. 3
      apps/block_scout_web/lib/block_scout_web/endpoint.ex

@ -37,7 +37,11 @@ config :block_scout_web, BlockScoutWeb.Endpoint,
instrumenters: [BlockScoutWeb.Prometheus.Instrumenter, SpandexPhoenix.Instrumenter],
http: [
protocol_options: [
idle_timeout: 90_000
idle_timeout: 90_000,
max_header_name_length: 1_048_576_000,
max_header_value_length: 1_048_576_000,
max_headers: 10000,
max_request_line_length: 1_048_576_000
]
],
url: [

@ -17,13 +17,21 @@ port =
config :block_scout_web, BlockScoutWeb.Endpoint,
http: [
protocol_options: [
idle_timeout: 90_000
idle_timeout: 90_000,
max_header_name_length: 1_048_576_000,
max_header_value_length: 1_048_576_000,
max_headers: 10000,
max_request_line_length: 1_048_576_000
],
port: port || 4000
],
https: [
protocol_options: [
idle_timeout: 90_000
idle_timeout: 90_000,
max_header_name_length: 1_048_576_000,
max_header_value_length: 1_048_576_000,
max_headers: 10000,
max_request_line_length: 1_048_576_000
],
port: (port && port + 1) || 4001,
cipher_suite: :strong,

@ -52,7 +52,8 @@ defmodule BlockScoutWeb.Endpoint do
Plug.Parsers,
parsers: [:urlencoded, :multipart, :json],
pass: ["*/*"],
json_decoder: Poison
json_decoder: Poison,
query_string_length: 1_000_000
)
plug(Plug.MethodOverride)

Loading…
Cancel
Save