Skip to content

Commit 1f992db

Browse files
namedgraphclaude
andcommitted
Enable gzip compression in nginx for RDF and JSON content types
Adds gzip_types covering application/json, SPARQL results, RDF serializations (Turtle, RDF/XML, LD+JSON, TriG, N-Quads, N-Triples), XML, CSS, JS, and SVG. Primarily reduces client.xsl.sef.json transfer size from ~11.8MB to ~2-3MB. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 11da65e commit 1f992db

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docker-compose.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,24 @@ configs:
193193
194194
client_max_body_size ${MAX_CONTENT_LENGTH:-2097152};
195195
196+
gzip on;
197+
gzip_types
198+
application/json
199+
application/ld+json
200+
application/rdf+xml
201+
application/sparql-results+json
202+
application/sparql-results+xml
203+
application/trig
204+
application/n-quads
205+
application/n-triples
206+
application/xml
207+
text/turtle
208+
text/css
209+
text/javascript
210+
application/javascript
211+
image/svg+xml;
212+
gzip_min_length 1024;
213+
196214
# server with optional client cert authentication
197215
server {
198216
listen 8443 ssl;

0 commit comments

Comments
 (0)