Skip to content

Commit f625df7

Browse files
committed
Update config
1 parent 6862c0c commit f625df7

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

config.php.pub-docker

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<?php
22
/* ----------------------------------------------------------------------------
33

4-
Open DMARC Analyzer - Open Source DMARC Analyzer
4+
Open Report Analyzer
55
Copyright (C) 2023 - John Bradley (userjack6880)
66

77
config.php
88
configuration file
99

10-
Available at: https://github.com/userjack6880/Open-DMARC-Analyzer
10+
Available at: https://github.com/userjack6880/Open-Report-Analyzer
1111

1212
-------------------------------------------------------------------------------
1313

14-
This file is part of Open DMARC Analyzer.
14+
This file is part of Open Report Analyzer.
1515

16-
Open DMARC Analyzer is free software: you can redistribute it and/or modify it under
16+
Open Report Analyzer is free software: you can redistribute it and/or modify it under
1717
the terms of the GNU General Public License as published by the Free Software
1818
Foundation, either version 3 of the License, or (at your option) any later
1919
version.
@@ -27,18 +27,18 @@ this program. If not, see <https://www.gnu.org/licenses/>.
2727

2828
---------------------------------------------------------------------------- */
2929

30-
// Cache env
31-
$env = getenv();
32-
3330
// Database Settings
3431

3532
define('DB_HOST', isset($env['DB_HOST']) ? $env['DB_HOST'] : 'localhost');
36-
define('DB_USER', isset($env['DB_USER']) ? $env['DB_USER'] : 'dmarc');
33+
define('DB_USER', isset($env['DB_USER']) ? $env['DB_USER'] : 'openreport');
3734
define('DB_PASS', isset($env['DB_PASS']) ? $env['DB_PASS'] : 'password');
38-
define('DB_NAME', isset($env['DB_NAME']) ? $env['DB_NAME'] : 'dmarc');
35+
define('DB_NAME', isset($env['DB_NAME']) ? $env['DB_NAME'] : 'openreport');
3936
define('DB_PORT', isset($env['DB_PORT']) ? $env['DB_PORT'] : '3306'); // default port 3306, 5432 for pgsql
4037
define('DB_TYPE', isset($env['DB_TYPE']) ? $env['DB_TYPE'] : 'mysql'); // supported mysql and pgsql
4138

39+
// Report Type Settings
40+
define('REPORT_TYPE', isset($env['REPORT_TYPE']) ? $env['REPORT_TYPE'] : 'dmarc'); // supported dmarc, tls, all
41+
4242
// Debug Settings
4343

4444
define('DEBUG', isset($env['DEBUG']) ? intval($env['DEBUG']) : 1);
@@ -48,9 +48,11 @@ define('DEBUG', isset($env['DEBUG']) ? intval($env['DEBUG']) : 1);
4848
define('TEMPLATE', isset($env['TEMPLATE']) ? $env['TEMPLATE'] : 'openda');
4949

5050
// Package Loader
51+
5152
define('AUTO_LOADER', isset($env['AUTO_LOADER']) ? $env['AUTO_LOADER'] : 'vendor/autoload.php'); // autoloader for composer installed libraries
5253

5354
// GeoIP2 Settings
55+
5456
define('GEO_ENABLE', isset($env['GEO_ENABLE']) ? intval($env['GEO_ENABLE']) : 1); // 0 - disable GeoIP2, 1 - enable GeoIP2
5557
define('GEO_DB', isset($env['GEO_DB']) ? $env['GEO_DB'] : 'includes/geolite2.mmdb'); // location of GeoIP2 database
5658

0 commit comments

Comments
 (0)