pull/2194/head
Ayrat Badykov 6 years ago
parent ea940de593
commit 4b38147afe
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 8
      apps/block_scout_web/config/config.exs
  2. 10
      apps/block_scout_web/config/dev.exs

@ -40,14 +40,6 @@ config :block_scout_web, BlockScoutWeb.Endpoint,
idle_timeout: 90_000 idle_timeout: 90_000
] ]
], ],
https: [
protocol_options: [
idle_timeout: 90_000
],
cipher_suite: :strong,
certfile: System.get_env("CERTFILE") || "priv/cert/selfsigned.pem",
keyfile: System.get_env("KEYFILE") || "priv/cert/selfsigned_key.pem"
],
url: [ url: [
host: "localhost", host: "localhost",
path: System.get_env("NETWORK_PATH") || "/" path: System.get_env("NETWORK_PATH") || "/"

@ -15,8 +15,16 @@ port =
end end
config :block_scout_web, BlockScoutWeb.Endpoint, config :block_scout_web, BlockScoutWeb.Endpoint,
http: [port: port || 4000], http: [
protocol_options: [
idle_timeout: 90_000
],
port: port || 4000
],
https: [ https: [
protocol_options: [
idle_timeout: 90_000
],
port: (port && port + 1) || 4001, port: (port && port + 1) || 4001,
cipher_suite: :strong, cipher_suite: :strong,
certfile: System.get_env("CERTFILE") || "priv/cert/selfsigned.pem", certfile: System.get_env("CERTFILE") || "priv/cert/selfsigned.pem",

Loading…
Cancel
Save