exclude /health from force_ssl redirect
All checks were successful
deploy / deploy (push) Successful in 3m38s
All checks were successful
deploy / deploy (push) Successful in 3m38s
Fly.io internal health checks are made over HTTP, so they get redirected to HTTPS with a 301 which fails the health check. Exclude /health path from SSL enforcement. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
b82d486877
commit
0741095a84
@ -9,7 +9,12 @@ config :berrypod, BerrypodWeb.Endpoint,
|
||||
cache_static_manifest: "priv/static/cache_manifest.json",
|
||||
# HSTS tells browsers to always use HTTPS for this domain (1 year, include subdomains)
|
||||
# This must be set at compile time, not runtime
|
||||
force_ssl: [hsts: true, rewrite_on: [:x_forwarded_proto]]
|
||||
# Exclude /health for Fly.io internal health checks (made over HTTP)
|
||||
force_ssl: [
|
||||
hsts: true,
|
||||
rewrite_on: [:x_forwarded_proto],
|
||||
exclude: [hosts: ["localhost", "127.0.0.1"], paths: ["/health"]]
|
||||
]
|
||||
|
||||
# Configures Swoosh API Client
|
||||
config :swoosh, api_client: Swoosh.ApiClient.Req
|
||||
|
||||
Loading…
Reference in New Issue
Block a user