File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ;
You can’t perform that action at this time.
0 commit comments