52 "no_daemonize", |
52 "no_daemonize", |
53 "require_encryption", |
53 "require_encryption", |
54 "vcard_compatibility", |
54 "vcard_compatibility", |
55 }); |
55 }); |
56 local known_global_options = set.new({ |
56 local known_global_options = set.new({ |
|
57 "access_control_allow_credentials", |
|
58 "access_control_allow_headers", |
|
59 "access_control_allow_methods", |
|
60 "access_control_max_age", |
|
61 "admin_socket", |
|
62 "body_size_limit", |
|
63 "bosh_max_inactivity", |
|
64 "bosh_max_polling", |
|
65 "bosh_max_wait", |
|
66 "buffer_size_limit", |
|
67 "c2s_close_timeout", |
|
68 "c2s_stanza_size_limit", |
|
69 "c2s_tcp_keepalives", |
|
70 "c2s_timeout", |
|
71 "component_stanza_size_limit", |
|
72 "component_tcp_keepalives", |
|
73 "consider_bosh_secure", |
|
74 "consider_websocket_secure", |
|
75 "console_banner", |
|
76 "console_prettyprint_settings", |
|
77 "cross_domain_bosh", |
|
78 "cross_domain_websocket", |
57 "daemonize", |
79 "daemonize", |
58 "gc", |
80 "gc", |
59 "http_default_host", |
81 "http_default_host", |
|
82 "http_errors_always_show", |
|
83 "http_errors_default_message", |
|
84 "http_errors_detailed", |
|
85 "http_errors_messages", |
60 "installer_plugin_path", |
86 "installer_plugin_path", |
61 "limits", |
87 "limits", |
|
88 "limits_resolution", |
62 "log", |
89 "log", |
|
90 "multiplex_buffer_size", |
63 "network_backend", |
91 "network_backend", |
|
92 "network_default_read_size", |
64 "network_settings", |
93 "network_settings", |
65 "pidfile", |
94 "pidfile", |
66 "plugin_paths", |
95 "plugin_paths", |
67 "plugin_server", |
96 "plugin_server", |
68 "prosodyctl_timeout", |
97 "prosodyctl_timeout", |
69 "prosody_group", |
98 "prosody_group", |
70 "prosody_user", |
99 "prosody_user", |
|
100 "run_as_root", |
|
101 "s2s_close_timeout", |
|
102 "s2s_insecure_domains", |
|
103 "s2s_require_encryption", |
|
104 "s2s_secure_auth", |
|
105 "s2s_secure_domains", |
|
106 "s2s_stanza_size_limit", |
|
107 "s2s_tcp_keepalives", |
|
108 "s2s_timeout", |
71 "statistics", |
109 "statistics", |
72 "statistics_config", |
110 "statistics_config", |
73 "statistics_interval", |
111 "statistics_interval", |
|
112 "tcp_keepalives", |
|
113 "trusted_proxies", |
74 "umask", |
114 "umask", |
|
115 "use_dane", |
75 "use_ipv4", |
116 "use_ipv4", |
76 "use_ipv6", |
117 "use_ipv6", |
77 "use_libevent", |
118 "use_libevent", |
|
119 "websocket_frame_buffer_limit", |
|
120 "websocket_frame_fragment_limit", |
|
121 "websocket_get_response_body", |
|
122 "websocket_get_response_text", |
78 }); |
123 }); |
79 local config = configmanager.getconfig(); |
124 local config = configmanager.getconfig(); |
80 -- Check that we have any global options (caused by putting a host at the top) |
125 -- Check that we have any global options (caused by putting a host at the top) |
81 if it.count(it.filter("log", pairs(config["*"]))) == 0 then |
126 if it.count(it.filter("log", pairs(config["*"]))) == 0 then |
82 ok = false; |
127 ok = false; |