error_log stderr; pid nginx/nginx.pid; daemon off; http { # allow 6 requests per min -> one each 10s on avg. limit_req_zone $binary_remote_addr zone=mylimit:10m rate=6r/m; proxy_cache_path /tmp/nginx_cache use_temp_path=off keys_zone=static_cache:10m; proxy_cache_valid 200 5m; server { listen 0.0.0.0:8090; access_log nginx/access_log; # To debug the rewrite rules, enable these directives: #error_log stderr notice; #rewrite_log on; include /etc/nginx/mime.types; default_type application/octet-stream; root dist/public; include hagrid-routes.conf; } } events { worker_connections 4096; }