From a766c593629e8165a4d0220721928b06cdf14c16 Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Thu, 24 Jul 2025 08:49:44 -0400 Subject: [PATCH] Added https parameter argument for config to enable HTTPS using self-signed certificate --- config/dev.exs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/config/dev.exs b/config/dev.exs index ffc4152..4803ff0 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -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,