Allow port to be configured via ENV

This commit is contained in:
Vamsi Krishna B 2021-07-17 22:51:18 +05:30
parent d970a6dfc0
commit c285624c66
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ explorer_hostname =
"""
config :zcash_explorer, ZcashExplorerWeb.Endpoint,
url: [host: explorer_hostname, port: String.to_integer(System.get_env("PORT") || "4000")],
url: [host: explorer_hostname, port: String.to_integer(System.get_env("EXPLORER_PORT") || "443")],
http: [
port: String.to_integer(System.get_env("PORT") || "4000"),
transport_options: [socket_opts: [:inet6]]