Skip to content

Instantly share code, notes, and snippets.

@himalay
Created May 31, 2020 11:43
Show Gist options
  • Save himalay/7e3f4c13050a9a5090e15c9f34936316 to your computer and use it in GitHub Desktop.
Save himalay/7e3f4c13050a9a5090e15c9f34936316 to your computer and use it in GitHub Desktop.
limit_req_zone $binary_remote_addr zone=myWebsiteFrontLimit:10m rate=10r/s;
server {
root /var/www/my-angular-app/dist/my-angular-app;
index index.html;
server_name www.my-website.ro my-website.ro;
location / {
limit_req zone=myWebsiteFrontLimit burst=30 nodelay;
try_files $uri $uri/ /index.html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment