2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2014-10-17 19:44:31 +02:00
|
|
|
|
2015-08-04 14:47:44 +02:00
|
|
|
#include "remote/i2-remote.hpp"
|
2015-08-15 20:28:05 +02:00
|
|
|
#include "base/configobject.hpp"
|
2014-05-25 16:23:35 +02:00
|
|
|
#include "base/application.hpp"
|
2021-07-16 18:32:26 +02:00
|
|
|
#include "base/tlsutility.hpp"
|
2013-10-26 09:41:45 +02:00
|
|
|
|
2015-08-04 14:47:44 +02:00
|
|
|
library remote;
|
|
|
|
|
2013-10-26 09:41:45 +02:00
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
2015-08-15 20:28:05 +02:00
|
|
|
class ApiListener : ConfigObject
|
2013-10-26 09:41:45 +02:00
|
|
|
{
|
2018-04-26 15:53:11 +02:00
|
|
|
activation_priority 50;
|
|
|
|
|
2017-10-16 15:32:57 +02:00
|
|
|
[config, deprecated] String cert_path;
|
|
|
|
[config, deprecated] String key_path;
|
|
|
|
[config, deprecated] String ca_path;
|
2013-11-13 10:30:40 +01:00
|
|
|
[config] String crl_path;
|
2016-03-25 21:25:19 +01:00
|
|
|
[config] String cipher_list {
|
2021-07-16 18:32:26 +02:00
|
|
|
default {{{ return DEFAULT_TLS_CIPHERS; }}}
|
2016-03-25 21:25:19 +01:00
|
|
|
};
|
2016-08-01 05:32:47 +02:00
|
|
|
[config] String tls_protocolmin {
|
2021-07-16 18:32:26 +02:00
|
|
|
default {{{ return DEFAULT_TLS_PROTOCOLMIN; }}}
|
2016-08-01 05:32:47 +02:00
|
|
|
};
|
2014-05-03 20:02:22 +02:00
|
|
|
|
2018-08-02 08:38:42 +02:00
|
|
|
[config] String bind_host {
|
2018-08-09 15:37:23 +02:00
|
|
|
default {{{ return Configuration::ApiBindHost; }}}
|
2018-08-02 08:38:42 +02:00
|
|
|
};
|
2014-05-03 20:02:22 +02:00
|
|
|
[config] String bind_port {
|
2018-08-09 15:37:23 +02:00
|
|
|
default {{{ return Configuration::ApiBindPort; }}}
|
2014-05-03 20:02:22 +02:00
|
|
|
};
|
|
|
|
|
2014-05-15 10:13:32 +02:00
|
|
|
[config] bool accept_config;
|
2014-11-13 11:23:57 +01:00
|
|
|
[config] bool accept_commands;
|
2018-09-05 17:45:35 +02:00
|
|
|
[config] int max_anonymous_clients {
|
|
|
|
default {{{ return -1; }}}
|
|
|
|
};
|
2014-05-15 10:13:32 +02:00
|
|
|
|
2021-06-04 15:09:09 +02:00
|
|
|
[config, deprecated] double tls_handshake_timeout {
|
2018-09-13 18:05:31 +02:00
|
|
|
get;
|
|
|
|
set;
|
|
|
|
default {{{ return Configuration::TlsHandshakeTimeout; }}}
|
|
|
|
};
|
|
|
|
|
2021-05-19 16:40:49 +02:00
|
|
|
[config] double connect_timeout {
|
2021-07-26 16:13:24 +02:00
|
|
|
default {{{ return DEFAULT_CONNECT_TIMEOUT; }}}
|
2021-05-19 16:40:49 +02:00
|
|
|
};
|
|
|
|
|
2021-07-01 17:25:41 +02:00
|
|
|
[config, no_user_view, no_user_modify] String ticket_salt;
|
2014-10-16 12:27:09 +02:00
|
|
|
|
2018-02-12 15:06:23 +01:00
|
|
|
[config] Array::Ptr access_control_allow_origin;
|
|
|
|
[config, deprecated] bool access_control_allow_credentials;
|
|
|
|
[config, deprecated] String access_control_allow_headers;
|
|
|
|
[config, deprecated] String access_control_allow_methods;
|
2017-07-27 14:57:34 +02:00
|
|
|
|
|
|
|
|
2016-06-21 11:29:12 +02:00
|
|
|
[state, no_user_modify] Timestamp log_message_timestamp;
|
2014-05-03 20:02:22 +02:00
|
|
|
|
2015-10-20 08:20:35 +02:00
|
|
|
[no_user_modify] String identity;
|
2018-09-28 11:08:58 +02:00
|
|
|
|
|
|
|
[state, no_user_modify] Dictionary::Ptr last_failed_zones_stage_validation;
|
2013-10-26 09:41:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|