From a49932a2696581eed028e50abd07ea13e74480dc Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Sun, 18 Feb 2024 14:08:34 +0000 Subject: [PATCH] docs: add nginx config --- docs/aci-api.ashhhleyyy.dev.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docs/aci-api.ashhhleyyy.dev.conf diff --git a/docs/aci-api.ashhhleyyy.dev.conf b/docs/aci-api.ashhhleyyy.dev.conf new file mode 100644 index 0000000..1a4fdd5 --- /dev/null +++ b/docs/aci-api.ashhhleyyy.dev.conf @@ -0,0 +1,15 @@ +limit_req_zone $binary_remote_addr zone=aci-backend:10m rate=1r/s; + +server { + include /etc/nginx/snippets/ashhhleyyy.dev.conf; + + server_name aci-api.ashhhleyyy.dev; + + location / { + limit_req zone=aci-backend burst=5 delay=5; + proxy_pass http://amity.ash.ley:8000; + } + + access_log /var/log/nginx/aci-api.ashhhleyyy.dev-access.log; + error_log /var/log/nginx/aci-api.ashhhleyyy.dev-error.log; +}