forked from kztime/phpipam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.docker.php
44 lines (38 loc) · 1.79 KB
/
config.docker.php
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
<?php
/**
* Import ENV settings for Docker containers.
* ln -s config.docker.php config.php
*/
require('config.dist.php');
/**
* database connection details
******************************/
getenv('IPAM_DATABASE_HOST') ? $db['host'] = getenv('IPAM_DATABASE_HOST') : false;
getenv('IPAM_DATABASE_USER') ? $db['user'] = getenv('IPAM_DATABASE_USER') : false;
getenv('IPAM_DATABASE_PASS') ? $db['pass'] = getenv('IPAM_DATABASE_PASS') : false;
getenv('IPAM_DATABASE_NAME') ? $db['name'] = getenv('IPAM_DATABASE_NAME') : false;
getenv('IPAM_DATABASE_PORT') ? $db['port'] = getenv('IPAM_DATABASE_PORT') : false;
getenv('IPAM_DATABASE_WEBHOST') ? $db['webhost'] = getenv('IPAM_DATABASE_WEBHOST') : false;
/**
* Google MAPs API key for locations to display map
*
* Obtain key: Go to your Google Console (https://console.developers.google.com) and enable "Google Maps JavaScript API"
* from overview tab, so go to Credentials tab and make an API key for your project.
******************************/
getenv('IPAM_GMAPS_API_KEY') ? $gmaps_api_key = getenv('IPAM_GMAPS_API_KEY') : false;
getenv('IPAM_GMAPS_API_KEY') ? $gmaps_api_geocode_key = getenv('IPAM_GMAPS_API_KEY') : false;
/**
* proxy connection details
******************************/
getenv('PROXY_ENABLED') ? $proxy_enabled = getenv('PROXY_ENABLED') : false;
getenv('PROXY_SERVER') ? $proxy_server = getenv('PROXY_SERVER') : false;
getenv('PROXY_PORT') ? $proxy_port = getenv('PROXY_PORT') : false;
getenv('PROXY_USER') ? $proxy_user = getenv('PROXY_USER') : false;
getenv('PROXY_PASS') ? $proxy_pass = getenv('PROXY_PASS') : false;
getenv('PROXY_USE_AUTH') ? $proxy_use_auth = getenv('PROXY_USE_AUTH') : false;
/**
* Session storage - files or database
*
* @var string
*/
$session_storage = "database";