config.inc.dev.php 1.45 KB
Newer Older
1 2
<?php

3 4 5 6
if (php_sapi_name() != 'cli') {
	/* Whoops catches all error messages in CLI mode as well :( */
	Foodsharing\Debug\Whoops::register();
}
7

8
$protocol = 'http';
Peter Tönnies's avatar
Peter Tönnies committed
9
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
10 11 12
	$protocol = 'https';
}

Peter Tönnies's avatar
Peter Tönnies committed
13 14 15 16 17 18
define('PROTOCOL', $protocol);
define('DB_HOST', 'db');
define('DB_USER', 'root');
define('DB_PASS', 'root');
define('DB_DB', 'foodsharing');
define('ERROR_REPORT', E_ALL);
Matthias Larisch's avatar
Matthias Larisch committed
19 20
define('BASE_URL', $protocol . '://localhost:18080');

chandi's avatar
chandi committed
21
define('INFLUX_DSN', 'udp+influxdb://influxdb:8089/foodsharing');
22

23 24
define('DEFAULT_EMAIL', 'noreply@foodsharing.de');
define('SUPPORT_EMAIL', 'it@foodsharing.network');
25
define('DEFAULT_EMAIL_NAME', 'foodsharing-Freiwillige');
26
define('VERSION', '0.8.3');
27
define('EMAIL_PUBLIC', 'info@foodsharing.de');
28
define('EMAIL_PUBLIC_NAME', 'foodsharing-Freiwillige');
29 30
define('NOREPLY_EMAIL_HOST', 'foodsharing.de');
define('PLATFORM_MAILBOX_HOST', 'foodsharing.network');
31

32
define('MAILBOX_OWN_DOMAINS', array('foodsharing.network', 'lebensmittelretten.de', 'foodsharing.de'));
33

34
define('MAILER_HOST', 'maildev');
35

36 37
define('MEM_ENABLED', true);

38
define('SOCK_URL', 'http://chat:1338/');
39 40 41
define('REDIS_HOST', 'redis');
define('REDIS_PORT', 6379);

42 43 44 45
define('IMAP', [
	['host' => 'imap', 'user' => 'user', 'password' => 'pass']
]);

46 47 48 49 50
define('BOUNCE_IMAP_HOST', null);
define('BOUNCE_IMAP_USER', null);
define('BOUNCE_IMAP_PASS', null);
define('BOUNCE_IMAP_PORT', null);

Peter Tönnies's avatar
Peter Tönnies committed
51 52
if (!defined('ROOT_DIR')) {
	define('ROOT_DIR', './');
53
}