Skip to content

Commit 1e181ee

Browse files
committed
Prevent lock
1 parent 2715579 commit 1e181ee

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

nginx.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ http {
1818
gzip_min_length 256;
1919
gzip_comp_level 6;
2020

21-
limit_req_zone $server_name zone=peppol_ratelimit:10m rate=4r/s;
21+
limit_req_zone $server_name zone=peppol_ratelimit:10m rate=5r/s;
2222

2323
server {
2424
listen 8000;
@@ -50,12 +50,12 @@ http {
5050
proxy_cache_methods GET HEAD;
5151
proxy_hide_header Set-Cookie;
5252
proxy_set_header Authorization "";
53-
proxy_cache_lock on; # Prevent concurrent upstream requests
53+
# proxy_cache_lock on; # Prevent concurrent upstream requests
5454
proxy_cache_use_stale error timeout invalid_header updating; # Serve stale cache if upstream fails
5555
proxy_cache_bypass $http_pragma; # Allow manual bypass for debugging
5656

5757
location / {
58-
limit_req zone=peppol_ratelimit burst=4; # This will queue 4 requests.
58+
limit_req zone=peppol_ratelimit burst=5; # This will queue 5 requests.
5959
proxy_pass https://directory.peppol.eu/search/1.0/json;
6060
add_header X-Cache-Status $upstream_cache_status;
6161
add_header X-Cache-Key $normalized_cache_key;

0 commit comments

Comments
 (0)