Skip to content

Commit 65426c6

Browse files
committed
feat: gzip pre-compression
1 parent 47e759f commit 65426c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ansible/roles/distributed_press/templates/nginx-static.j2

+4
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ server {
6060
ssl_protocols TLSv1.2 TLSv1.3;
6161
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305;
6262

63+
gzip_static on;
64+
65+
default_type "text/html";
66+
6367
# Some Fediverse endpoints don't include an extension and we'd need to
6468
# configure everything. By adding index.json, we can serve these
6569
# endpoints as directories.

0 commit comments

Comments
 (0)