We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32139b6 commit ac9aeb7Copy full SHA for ac9aeb7
1 file changed
nginx.conf
@@ -18,6 +18,8 @@ http {
18
gzip_min_length 256;
19
gzip_comp_level 6;
20
21
+ limit_req_zone $server_name zone=peppol_ratelimit:10m rate=4r/s;
22
+
23
server {
24
listen 8000;
25
@@ -53,6 +55,7 @@ http {
53
55
proxy_cache_bypass $http_pragma; # Allow manual bypass for debugging
54
56
57
location / {
58
+ limit_req zone=peppol_ratelimit burst=128; # This will queue 128 requests.
59
proxy_pass https://directory.peppol.eu/search/1.0/json;
60
add_header X-Cache-Status $upstream_cache_status;
61
add_header X-Cache-Key $normalized_cache_key;
0 commit comments