mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
docs: Updated install docs + perf to support compressing file types and using http/2 (#6466)
This commit is contained in:
committed by
Tony Murray
parent
3ff8b269f5
commit
64e020d703
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user