2014-10-17 19:44:31 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* Icinga 2 *
|
2018-01-02 12:06:00 +01:00
|
|
|
* Copyright (C) 2012-2018 Icinga Development Team (https://www.icinga.com/) *
|
2014-10-17 19:44:31 +02:00
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or *
|
|
|
|
* modify it under the terms of the GNU General Public License *
|
|
|
|
* as published by the Free Software Foundation; either version 2 *
|
|
|
|
* of the License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program; if not, write to the Free Software Foundation *
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
|
|
|
******************************************************************************/
|
|
|
|
|
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"
|
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 {
|
|
|
|
default {{{ return "ALL:!LOW:!WEAK:!MEDIUM:!EXP:!NULL"; }}}
|
|
|
|
};
|
2016-08-01 05:32:47 +02:00
|
|
|
[config] String tls_protocolmin {
|
|
|
|
default {{{ return "TLSv1"; }}}
|
|
|
|
};
|
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
|
|
|
|
2018-09-13 18:05:31 +02:00
|
|
|
[config] double tls_handshake_timeout {
|
|
|
|
get;
|
|
|
|
set;
|
|
|
|
default {{{ return Configuration::TlsHandshakeTimeout; }}}
|
|
|
|
};
|
|
|
|
|
2014-10-16 12:27:09 +02:00
|
|
|
[config] String ticket_salt;
|
|
|
|
|
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;
|
2013-10-26 09:41:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|