Merge pull request #1423 from umap-project/doc-proxy-header

Add in documentation example of filtering headers in ajax proxy conf
This commit is contained in:
Yohan Boniface 2023-11-23 21:21:49 +01:00 committed by GitHub
commit 19c7a273d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -380,6 +380,10 @@ In Nginx:
} }
resolver 8.8.8.8; resolver 8.8.8.8;
add_header X-Proxy-Target $target_url; # For debugging add_header X-Proxy-Target $target_url; # For debugging
proxy_pass_request_headers off;
proxy_set_header Content-Type $http_content_type;
proxy_set_header Content-Encoding $http_content_encoding;
proxy_set_header Content-Length $http_content_length;
proxy_read_timeout 10s; proxy_read_timeout 10s;
proxy_connect_timeout 5s; proxy_connect_timeout 5s;
proxy_pass $target_url; proxy_pass $target_url;