Add compression via content-encoding
This commit is contained in:
parent
e1a6db3fbd
commit
4ec9d0344a
3 changed files with 5 additions and 3 deletions
|
@ -165,6 +165,7 @@ let setup_app level influx port host datadir cachedir configdir run_batch_viz_fl
|
|||
in
|
||||
Dream.run ~port ~interface:host ~tls:false ~error_handler
|
||||
@@ Dream.logger
|
||||
@@ Dream_encoding.compress
|
||||
@@ Dream.sql_pool ("sqlite3:" ^ dbpath)
|
||||
@@ Http_status_metrics.handle
|
||||
@@ Builder_web.Middleware.remove_trailing_url_slash
|
||||
|
|
6
bin/dune
6
bin/dune
|
@ -7,9 +7,9 @@
|
|||
(public_name builder-web)
|
||||
(name builder_web_app)
|
||||
(modules builder_web_app)
|
||||
(libraries builder_web builder_system mirage-crypto-rng.unix cmdliner
|
||||
logs.cli metrics metrics-lwt metrics-influx metrics-rusage ipaddr
|
||||
ipaddr.unix http_status_metrics))
|
||||
(libraries builder_web builder_system dream dream-encoding
|
||||
mirage-crypto-rng.unix cmdliner logs.cli metrics metrics-lwt metrics-influx
|
||||
metrics-rusage ipaddr ipaddr.unix http_status_metrics))
|
||||
|
||||
(executable
|
||||
(public_name builder-db)
|
||||
|
|
|
@ -19,6 +19,7 @@ depends: [
|
|||
"dune" {>= "2.7.0"}
|
||||
"builder" {>= "0.4.0"}
|
||||
"dream" {>= "1.0.0~alpha7"}
|
||||
"dream-encoding"
|
||||
"bos"
|
||||
"ohex" {>= "0.2.0"}
|
||||
"lwt" {>= "5.7.0"}
|
||||
|
|
Loading…
Reference in a new issue