From ffb2b9576f004445cc71fea95fbdda4d0c9f82e3 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Mon, 5 Jan 2026 13:23:38 -0600 Subject: [PATCH] Remove force_ssl config since Traefik handles SSL termination --- config/prod.exs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/config/prod.exs b/config/prod.exs index 1257c310..52ab0ea1 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -15,12 +15,3 @@ config :swoosh, local: false # which you should run after static files are built and # before starting your production server. config :towerops, ToweropsWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json" - -# Force using SSL in production. This also sets the "strict-security-transport" header, -# known as HSTS. If you have a health check endpoint, you may want to exclude it below. -# Note `:force_ssl` is required to be set at compile-time. -config :towerops, ToweropsWeb.Endpoint, - force_ssl: [ - rewrite_on: [:x_forwarded_proto], - exclude: [paths: ["/health"], hosts: ["localhost", "127.0.0.1"]] - ]