From 9ab16b4257d1d21965be0c7ba2eb46596375119c Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Wed, 22 Apr 2020 19:14:03 +0200 Subject: [PATCH] enforce gzip encoding for graphql api endpoint --- vendor/docker/webapp.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vendor/docker/webapp.conf b/vendor/docker/webapp.conf index 1ac66a460..79245231b 100644 --- a/vendor/docker/webapp.conf +++ b/vendor/docker/webapp.conf @@ -12,4 +12,11 @@ server { location = / { return 301 https://support.datacite.org/docs/api; } + + location /client-api/graphql { + gzip on; + gzip_min_length 1000; + gzip_proxied expired no-cache no-store private auth; + gzip_types text/plain application/json; + } }