Skip to content

Commit

Permalink
Improve compression support
Browse files Browse the repository at this point in the history
  • Loading branch information
spantaleev committed Aug 17, 2018
1 parent a302a7d commit df79901
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# 2018-08-17

## Compression improvements

Shifted Matrix Synapse compression from happening in the Matrix Synapse,
to happening in the nginx proxy that's in front of it.

Additionally, `riot-web` also gets compressed now (in the nginx proxy),
which drops the initial page load's size from 5.31MB to 1.86MB.


## Disabling some unnecessary Synapse services

The following services are not necessary, so they have been disabled:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ server {
server_tokens off;
root /dev/null;

gzip on;
gzip_types text/plain text/html application/json application/javascript text/css image/x-icon font/ttf image/gif;

ssl_certificate {{ matrix_ssl_certs_path }}/live/{{ hostname_riot }}/fullchain;
ssl_certificate_key {{ matrix_ssl_certs_path }}/live/{{ hostname_riot }}/privkey;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ server {
server_tokens off;
root /dev/null;

gzip on;
gzip_types text/plain text/html application/json;

ssl_certificate {{ matrix_ssl_certs_path }}/live/{{ hostname_matrix }}/fullchain;
ssl_certificate_key {{ matrix_ssl_certs_path }}/live/{{ hostname_matrix }}/privkey;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
Expand Down
2 changes: 1 addition & 1 deletion roles/matrix-server/templates/synapse/homeserver.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ listeners:

resources:
- names: [client]
compress: true
compress: false

# Turn on the twisted ssh manhole service on localhost on the given
# port.
Expand Down

0 comments on commit df79901

Please sign in to comment.