Created
May 31, 2020 11:43
-
-
Save himalay/7e3f4c13050a9a5090e15c9f34936316 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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