mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 06:07:37 +03:00
plugins/various: Use type-specific config API
This commit is contained in:
parent
0bf98e614f
commit
c3d7d52f0d
4 changed files with 6 additions and 6 deletions
|
@ -19,7 +19,7 @@ local path_sep = package.config:sub(1,1);
|
|||
local base_path = module:get_option_string("http_files_dir", module:get_option_string("http_path"));
|
||||
local cache_size = module:get_option_number("http_files_cache_size", 128);
|
||||
local cache_max_file_size = module:get_option_number("http_files_cache_max_file_size", 4096);
|
||||
local dir_indices = module:get_option("http_index_files", { "index.html", "index.htm" });
|
||||
local dir_indices = module:get_option_array("http_index_files", { "index.html", "index.htm" });
|
||||
local directory_index = module:get_option_boolean("http_dir_listing");
|
||||
|
||||
local mime_map = module:shared("/*/http_files/mime").types;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue