Comparison

prosodyctl @ 11586:35e880501efd 0.11

prosodyctl: Add 'limits' to known globals to warn about misplacing it It will do nothing in a VirtualHost section for example.
author Kim Alvefur <zash@zash.se>
date Thu, 27 May 2021 12:35:55 +0200
parent 11552:d4b735272a61
child 11587:ce7c52a6d650
child 11809:49cfd3628d9d
comparison
equal deleted inserted replaced
11566:6e67872bcba4 11586:35e880501efd
839 "vcard_compatibility", 839 "vcard_compatibility",
840 }); 840 });
841 local known_global_options = set.new({ 841 local known_global_options = set.new({
842 "pidfile", "log", "plugin_paths", "prosody_user", "prosody_group", "daemonize", 842 "pidfile", "log", "plugin_paths", "prosody_user", "prosody_group", "daemonize",
843 "umask", "prosodyctl_timeout", "use_ipv6", "use_libevent", "network_settings", 843 "umask", "prosodyctl_timeout", "use_ipv6", "use_libevent", "network_settings",
844 "network_backend", "http_default_host", "gc", 844 "network_backend", "http_default_host", "gc", "limits",
845 "statistics_interval", "statistics", "statistics_config", 845 "statistics_interval", "statistics", "statistics_config",
846 }); 846 });
847 local config = configmanager.getconfig(); 847 local config = configmanager.getconfig();
848 -- Check that we have any global options (caused by putting a host at the top) 848 -- Check that we have any global options (caused by putting a host at the top)
849 if it.count(it.filter("log", pairs(config["*"]))) == 0 then 849 if it.count(it.filter("log", pairs(config["*"]))) == 0 then