equal
deleted
inserted
replaced
28 server.set_default_host(module:get_option_string("http_default_host")); |
28 server.set_default_host(module:get_option_string("http_default_host")); |
29 |
29 |
30 server.set_option("body_size_limit", module:get_option_number("http_max_content_size")); |
30 server.set_option("body_size_limit", module:get_option_number("http_max_content_size")); |
31 server.set_option("buffer_size_limit", module:get_option_number("http_max_buffer_size")); |
31 server.set_option("buffer_size_limit", module:get_option_number("http_max_buffer_size")); |
32 |
32 |
33 -- CORS settigs |
33 -- CORS settings |
34 local opt_methods = module:get_option_set("access_control_allow_methods", { "GET", "OPTIONS" }); |
34 local opt_methods = module:get_option_set("access_control_allow_methods", { "GET", "OPTIONS" }); |
35 local opt_headers = module:get_option_set("access_control_allow_headers", { "Content-Type" }); |
35 local opt_headers = module:get_option_set("access_control_allow_headers", { "Content-Type" }); |
36 local opt_credentials = module:get_option_boolean("access_control_allow_credentials", false); |
36 local opt_credentials = module:get_option_boolean("access_control_allow_credentials", false); |
37 local opt_max_age = module:get_option_number("access_control_max_age", 2 * 60 * 60); |
37 local opt_max_age = module:get_option_number("access_control_max_age", 2 * 60 * 60); |
38 |
38 |