Added https parameter argument for config to enable HTTPS using self-signed certificate

This commit is contained in:
Alex Tavarez
2025-07-24 08:49:44 -04:00
parent f9616ca3e5
commit a766c59362

View File

@@ -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,