Exclude /health endpoint from SSL redirect

Prevents excessive 301 redirect logs from Kubernetes health probes
This commit is contained in:
Graham McIntire 2026-01-03 15:50:31 -06:00
parent 7339ac7eec
commit 2e3094634c
No known key found for this signature in database

View file

@ -22,7 +22,7 @@ config :towerops, ToweropsWeb.Endpoint, cache_static_manifest: "priv/static/cach
config :towerops, ToweropsWeb.Endpoint,
force_ssl: [rewrite_on: [:x_forwarded_proto]],
exclude: [
# paths: ["/health"],
paths: ["/health"],
# Runtime production configuration, including reading
# of environment variables, is done on config/runtime.exs.
hosts: ["localhost", "127.0.0.1"]