add rate limiting and HSTS for security hardening
Some checks failed
deploy / deploy (push) Failing after 8m33s
Some checks failed
deploy / deploy (push) Failing after 8m33s
- Add Hammer library for rate limiting with ETS backend - Rate limit login (5/min), magic link (3/min), newsletter (10/min), API (60/min) - Add themed 429 error page using bare shop styling - Enable HSTS in production with rewrite_on for Fly proxy - Add security hardening plan to docs Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
3
mix.exs
3
mix.exs
@@ -80,7 +80,8 @@ defmodule Berrypod.MixProject do
|
||||
{:error_tracker, "~> 0.7"},
|
||||
{:logger_json, "~> 7.0", only: :prod},
|
||||
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
|
||||
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}
|
||||
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
|
||||
{:hammer, "~> 7.0"}
|
||||
]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user