diff --git a/doc/Installation/Installation-CentOS-7-Nginx.md b/doc/Installation/Installation-CentOS-7-Nginx.md index 5dd82f9688..06d9927c2b 100644 --- a/doc/Installation/Installation-CentOS-7-Nginx.md +++ b/doc/Installation/Installation-CentOS-7-Nginx.md @@ -102,7 +102,7 @@ server { access_log /opt/librenms/logs/access_log; error_log /opt/librenms/logs/error_log; gzip on; - gzip_types text/css application/x-javascript text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon; + gzip_types text/css application/javascript text/javascript application/x-javascript image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon; location / { try_files $uri $uri/ @librenms; } diff --git a/doc/Installation/Installation-Ubuntu-1604-Nginx.md b/doc/Installation/Installation-Ubuntu-1604-Nginx.md index 5151d9f7aa..60d25ae62f 100644 --- a/doc/Installation/Installation-Ubuntu-1604-Nginx.md +++ b/doc/Installation/Installation-Ubuntu-1604-Nginx.md @@ -78,7 +78,7 @@ server { access_log /opt/librenms/logs/access_log; error_log /opt/librenms/logs/error_log; gzip on; - gzip_types text/css application/x-javascript text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon; + gzip_types text/css application/javascript text/javascript application/x-javascript image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon; location / { try_files $uri $uri/ @librenms; } diff --git a/doc/Support/Performance.md b/doc/Support/Performance.md index 3e812aa185..8e2606d772 100644 --- a/doc/Support/Performance.md +++ b/doc/Support/Performance.md @@ -89,3 +89,13 @@ If you would like to see if you should turn this on then run this query in MySQL | 81 | 2 | Here device id 128 and potentially 92 and 41 are likely candidates for this feature to be enabled on. Turn it on and then closely monitor the device for the next 15-30 minutes. + +### Web interface + +#### HTTP/2 + +If you are running https then you should enable http/2 support in whatever web server you use: + +For Nginx (1.9.5 and above) change `listen 443 http2;` to `listen 443 ssl http2;` in the Virtualhost config. + +For Apache (2.4.17 an above) set `Protocols h2 http/1.1` in the Virtualhost config. diff --git a/html/.htaccess b/html/.htaccess index 24780eaa0e..f5b0f62377 100644 --- a/html/.htaccess +++ b/html/.htaccess @@ -6,7 +6,16 @@ Options FollowSymlinks Multiviews AddType image/svg+xml .svg + AddOutputFilterByType DEFLATE text/css + AddOutputFilterByType DEFLATE application/javascript + AddOutputFilterByType DEFLATE text/javascript + AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE image/svg+xml + AddOutputFilterByType DEFLATE text/plain + AddOutputFilterByType DEFLATE text/xsd + AddOutputFilterByType DEFLATE text/xsl + AddOutputFilterByType DEFLATE text/xml + AddOutputFilterByType DEFLATE image/x-icon