Closed vn7n24fzkq closed 3 months ago
Add rack_attack as a rate limiter.
rack_attack
Add config/initializers/rack_attack.rb for rack_attack.
config/initializers/rack_attack.rb
Add a docker-compose file including a PostgreSQL service to simplify building a local development environment.
docker-compose
Host the web server on 0.0.0.0 in the Docker container, allowing access via localhost.
0.0.0.0
Change the RubyCache control condition. Now, you can enable the cache in development by setting the environment variable RAILS_DEV_CACHE to true.
RAILS_DEV_CACHE
Please note that the Dockerfile hosts the server on 0.0.0.0. I am not sure how this will affect the deployment on Zeabur.
Zeabur used 0.0.0.0 as well.
Add
rack_attack
as a rate limiter.Add
config/initializers/rack_attack.rb
forrack_attack
.Add a
docker-compose
file including a PostgreSQL service to simplify building a local development environment.Host the web server on
0.0.0.0
in the Docker container, allowing access via localhost.Change the RubyCache control condition. Now, you can enable the cache in development by setting the environment variable
RAILS_DEV_CACHE
to true.Please note that the Dockerfile hosts the server on
0.0.0.0
. I am not sure how this will affect the deployment on Zeabur.