forked from rtm516/Open-DMARC-Analyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php.pub-docker
66 lines (42 loc) · 2.46 KB
/
config.php.pub-docker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/* ----------------------------------------------------------------------------
Open Report Analyzer
Copyright (C) 2023 - John Bradley (userjack6880)
config.php
configuration file
Available at: https://github.com/userjack6880/Open-Report-Analyzer
-------------------------------------------------------------------------------
This file is part of Open Report Analyzer.
Open Report Analyzer 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 3 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, see <https://www.gnu.org/licenses/>.
---------------------------------------------------------------------------- */
// Env
$env = getenv();
// Database Settings
define('DB_HOST', isset($env['DB_HOST']) ? $env['DB_HOST'] : 'localhost');
define('DB_USER', isset($env['DB_USER']) ? $env['DB_USER'] : 'openreport');
define('DB_PASS', isset($env['DB_PASS']) ? $env['DB_PASS'] : 'password');
define('DB_NAME', isset($env['DB_NAME']) ? $env['DB_NAME'] : 'openreport');
define('DB_PORT', isset($env['DB_PORT']) ? $env['DB_PORT'] : '3306'); // default port 3306, 5432 for pgsql
define('DB_TYPE', isset($env['DB_TYPE']) ? $env['DB_TYPE'] : 'mysql'); // supported mysql and pgsql
// Report Type Settings
define('REPORT_TYPE', isset($env['REPORT_TYPE']) ? $env['REPORT_TYPE'] : 'dmarc'); // supported dmarc, tls, all
// Debug Settings
define('DEBUG', isset($env['DEBUG']) ? intval($env['DEBUG']) : 1);
// Template Settings
define('TEMPLATE', isset($env['TEMPLATE']) ? $env['TEMPLATE'] : 'openda');
// Package Loader
define('AUTO_LOADER', isset($env['AUTO_LOADER']) ? $env['AUTO_LOADER'] : 'vendor/autoload.php'); // autoloader for composer installed libraries
// GeoIP2 Settings
define('GEO_ENABLE', isset($env['GEO_ENABLE']) ? intval($env['GEO_ENABLE']) : 1); // 0 - disable GeoIP2, 1 - enable GeoIP2
define('GEO_DB', isset($env['GEO_DB']) ? $env['GEO_DB'] : 'includes/geolite2.mmdb'); // location of GeoIP2 database
// Date Range
define('DATE_RANGE', isset($env['DATE_RANGE']) ? $env['DATE_RANGE'] : '-1w');
?>