WebServer: Enable deflate and gzip compression (#3677)

* get-index: Enable deflate and gzip compression

* Spaces -> Tabs

* listen: Add optional `gzip=yes` parameter (defaults to "no")

* get-index: Add comment explaining the usage of `zlib.*Sync` instead of async.
This commit is contained in:
Moritz Ulrich
2019-01-27 16:23:24 +00:00
committed by Jeremy Ruston
parent 02fbae4200
commit 049244e8a8
3 changed files with 33 additions and 3 deletions
+1
View File
@@ -28,6 +28,7 @@ All parameters are optional with safe defaults, and can be specified in any orde
* ''tls-cert'' - pathname of TLS certificate file (relative to wiki folder)
* ''tls-key'' - pathname of TLS key file (relative to wiki folder)
* ''debug-level'' - optional debug level; set to "debug" to view request details (defaults to "none")
* ''gzip'' - set to "yes" to enable gzip compression for some http endpoints (defaults to "no")
For information on opening up your instance to the entire local network, and possible security concerns, see the WebServer tiddler at TiddlyWiki.com.