exclude healthcheck from ssl redirect
This commit is contained in:
parent
0037f18848
commit
923fb4a9ed
1 changed files with 6 additions and 1 deletions
|
|
@ -29,4 +29,9 @@ config :towerops, ToweropsWeb.Endpoint,
|
|||
cache_static_manifest: "priv/static/cache_manifest.json",
|
||||
# Force SSL redirects and enable HSTS (HTTP Strict Transport Security)
|
||||
# HSTS tells browsers to only use HTTPS for this domain for the next year
|
||||
force_ssl: [hsts: true, rewrite_on: [:x_forwarded_host, :x_forwarded_port, :x_forwarded_proto]]
|
||||
# Exclude /health endpoint from SSL redirect (used by K8s probes on internal network)
|
||||
force_ssl: [
|
||||
hsts: true,
|
||||
rewrite_on: [:x_forwarded_host, :x_forwarded_port, :x_forwarded_proto],
|
||||
exclude: ["health"]
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue