diff --git a/.gitignore b/.gitignore index 55606b1502..b4d6d0f792 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,6 @@ screenshots/ # osx .DS_Store + +# mix phx.gen.cert self-signed certs for dev +/apps/block_scout_web/priv/cert diff --git a/apps/block_scout_web/config/dev.exs b/apps/block_scout_web/config/dev.exs index 2b50183667..8feafba7cb 100644 --- a/apps/block_scout_web/config/dev.exs +++ b/apps/block_scout_web/config/dev.exs @@ -8,6 +8,12 @@ use Mix.Config # with webpack to recompile .js and .css sources. config :block_scout_web, BlockScoutWeb.Endpoint, http: [port: 4000], + https: [ + port: 4001, + cipher_suite: :strong, + certfile: "priv/cert/selfsigned.pem", + keyfile: "priv/cert/selfsigned_key.pem" + ], debug_errors: true, code_reloader: true, check_origin: false, diff --git a/apps/block_scout_web/config/test.exs b/apps/block_scout_web/config/test.exs index 72beec9ff4..1c695a15bc 100644 --- a/apps/block_scout_web/config/test.exs +++ b/apps/block_scout_web/config/test.exs @@ -5,7 +5,7 @@ config :block_scout_web, :sql_sandbox, true # We don't run a server during test. If one is required, # you can enable the server option below. config :block_scout_web, BlockScoutWeb.Endpoint, - http: [port: 4001], + http: [port: 4002], secret_key_base: "27Swe6KtEtmN37WyEYRjKWyxYULNtrxlkCEKur4qoV+Lwtk8lafsR16ifz1XBBYj", server: true