Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ui/conf
diff options
context:
space:
mode:
authorAlexander Vladishev <aleksander.vladishev@zabbix.com>2020-05-03 17:30:06 +0300
committerAlexander Vladishev <aleksander.vladishev@zabbix.com>2020-05-03 17:30:06 +0300
commit8d9be8910e07b28b4510482c0720425f8ed8233e (patch)
tree8e5ca25c795ad586db165fecff35c3f3cd61c19b /ui/conf
parente635eaceb24410622a928043971b8e9d89b1049b (diff)
A.F.I..... [ZBX-17667] moved "frontends/php" to "ui" directory
Diffstat (limited to 'ui/conf')
-rw-r--r--ui/conf/.htaccess10
-rw-r--r--ui/conf/certs/.gitignore4
-rw-r--r--ui/conf/maintenance.inc.php29
-rw-r--r--ui/conf/zabbix.conf.php.example47
4 files changed, 90 insertions, 0 deletions
diff --git a/ui/conf/.htaccess b/ui/conf/.htaccess
new file mode 100644
index 00000000000..2509de4fcf4
--- /dev/null
+++ b/ui/conf/.htaccess
@@ -0,0 +1,10 @@
+<IfModule mod_authz_core.c>
+ # Apache 2.4
+ Require all denied
+</IfModule>
+
+<IfModule !mod_authz_core.c>
+ # Apache 2.2
+ Order deny,allow
+ Deny from all
+</IfModule>
diff --git a/ui/conf/certs/.gitignore b/ui/conf/certs/.gitignore
new file mode 100644
index 00000000000..5e7d2734cfc
--- /dev/null
+++ b/ui/conf/certs/.gitignore
@@ -0,0 +1,4 @@
+# Ignore everything in this directory
+*
+# Except this file
+!.gitignore
diff --git a/ui/conf/maintenance.inc.php b/ui/conf/maintenance.inc.php
new file mode 100644
index 00000000000..96516898f26
--- /dev/null
+++ b/ui/conf/maintenance.inc.php
@@ -0,0 +1,29 @@
+<?php
+/*
+** Zabbix
+** Copyright (C) 2001-2020 Zabbix SIA
+**
+** 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 Street, Fifth Floor, Boston, MA 02110-1301, USA.
+**/
+
+
+// Maintenance mode
+//define('ZBX_DENY_GUI_ACCESS', 1);
+
+// IP range, who are allowed to connect to FrontEnd
+//$ZBX_GUI_ACCESS_IP_RANGE = array('127.0.0.1');
+
+// MSG shown on Warning screen!
+//$_REQUEST['warning_msg'] = 'Zabbix is under maintenance.';
diff --git a/ui/conf/zabbix.conf.php.example b/ui/conf/zabbix.conf.php.example
new file mode 100644
index 00000000000..6c5a096cf45
--- /dev/null
+++ b/ui/conf/zabbix.conf.php.example
@@ -0,0 +1,47 @@
+<?php
+// Zabbix GUI configuration file.
+
+$DB['TYPE'] = 'MYSQL';
+$DB['SERVER'] = 'localhost';
+$DB['PORT'] = '0';
+$DB['DATABASE'] = 'zabbix';
+$DB['USER'] = 'zabbix';
+$DB['PASSWORD'] = '';
+
+// Schema name. Used for PostgreSQL.
+$DB['SCHEMA'] = '';
+
+// Used for TLS connection.
+$DB['ENCRYPTION'] = false;
+$DB['KEY_FILE'] = '';
+$DB['CERT_FILE'] = '';
+$DB['CA_FILE'] = '';
+$DB['VERIFY_HOST'] = false;
+$DB['CIPHER_LIST'] = '';
+
+// Use IEEE754 compatible value range for 64-bit Numeric (float) history values.
+// This option is enabled by default for new Zabbix installations.
+// For upgraded installations, please read database upgrade notes before enabling this option.
+$DB['DOUBLE_IEEE754'] = true;
+
+$ZBX_SERVER = 'localhost';
+$ZBX_SERVER_PORT = '10051';
+$ZBX_SERVER_NAME = '';
+
+$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
+
+// Uncomment this block only if you are using Elasticsearch.
+// Elasticsearch url (can be string if same url is used for all types).
+//$HISTORY['url'] = [
+// 'uint' => 'http://localhost:9200',
+// 'text' => 'http://localhost:9200'
+//];
+// Value types stored in Elasticsearch.
+//$HISTORY['types'] = ['uint', 'text'];
+
+// Used for SAML authentication.
+// Uncomment to override the default paths to SP private key, SP and IdP X.509 certificates, and to set extra settings.
+//$SSO['SP_KEY'] = 'conf/certs/sp.key';
+//$SSO['SP_CERT'] = 'conf/certs/sp.crt';
+//$SSO['IDP_CERT'] = 'conf/certs/idp.crt';
+//$SSO['SETTINGS'] = [];