Commit 58a4ded7 authored by Stephane Glondu's avatar Stephane Glondu Committed by Stéphane Glondu

Move setting of maxrequestbodysizeinmemory to configuration

parent 42370ae8
Pipeline #103588 passed with stages
in 23 minutes and 47 seconds
......@@ -41,6 +41,7 @@
<eliom findlib-package="eliom.server.monitor.start"/>
</site>
<eliom module="_build/src/web/server.cma">
<maxrequestbodysizeinmemory value="128000"/>
<maxmailsatonce value="1000"/>
<uuid length="14"/>
<gdpr uri="http://www.example.org/privacy_policy.html"/>
......
......@@ -26,10 +26,6 @@ open Web_common
(** Global initialization *)
(* FIXME: the following should be in configuration file... but
<maxrequestbodysize> doesn't work *)
let () = Ocsigen_config.set_maxrequestbodysizeinmemory 128000
let () = CalendarLib.Time_Zone.(change Local)
(** Parse configuration from <eliom> *)
......@@ -46,6 +42,8 @@ let () =
List.iter @@ function
| PCData x ->
Ocsigen_extensions.Configuration.ignore_blank_pcdata ~in_tag:"belenios" x
| Element ("maxrequestbodysizeinmemory", ["value", m], []) ->
Ocsigen_config.set_maxrequestbodysizeinmemory (int_of_string m)
| Element ("log", ["file", file], []) ->
Lwt_main.run (open_security_log file)
| Element ("source", ["file", file], []) ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment