Added https parameter argument for config to enable HTTPS using self-signed certificate
This commit is contained in:
@@ -16,7 +16,14 @@ config :sukaato, Sukaato.Repo,
|
||||
config :sukaato, SukaatoWeb.Endpoint,
|
||||
# Binding to loopback ipv4 address prevents access from other machines.
|
||||
# Change to `ip: {0, 0, 0, 0}` to allow access from other machines.
|
||||
http: [ip: {127, 0, 0, 1}, port: 4000],
|
||||
# http: [ip: {127, 0, 0, 1}, port: 4000],
|
||||
http: [ip: {127, 0, 0, 0, 1}, port: 4000],
|
||||
https: [
|
||||
port: 4001,
|
||||
cipher_suite: :strong,
|
||||
keyfile: "priv/cert/selfsigned_key.pem",
|
||||
certfile: "priv/cert/selfsigned.pem"
|
||||
],
|
||||
check_origin: false,
|
||||
code_reloader: true,
|
||||
debug_errors: true,
|
||||
|
Reference in New Issue
Block a user