docs: Updated install docs + perf to support compressing file types and using http/2 (#6466)

This commit is contained in:
Neil Lathwood
2017-04-22 14:09:34 +01:00
committed by Tony Murray
parent 3ff8b269f5
commit 64e020d703
4 changed files with 21 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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.

View File

@@ -6,7 +6,16 @@ Options FollowSymlinks Multiviews
AddType image/svg+xml .svg
<IfModule mod_filter.c>
<IfModule mod_deflate.c>
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
</IfModule>
</IfModule>