Skip to content

Instantly share code, notes, and snippets.

@chrishieu
Last active September 26, 2017 09:56
Show Gist options
  • Save chrishieu/c5cf80c14b64db46047d9fa5ae74f130 to your computer and use it in GitHub Desktop.
Save chrishieu/c5cf80c14b64db46047d9fa5ae74f130 to your computer and use it in GitHub Desktop.
db-config.php, ip_check.json, federation.ini
// ../config/db-config.php
<?php
define('DEVELOPMENT_ENVIRONMENT', 1);
define('DB_NAME', 'maersk_greetings');
if (DEVELOPMENT_ENVIRONMENT == 0) { //localhost
define('BASE_URL', 'http://maersk-card-generator-v2.etypes/');
define('DB_USER', 'root');
define('DB_PASSWORD', 'root');
define('DB_HOST', 'localhost');
} else if (DEVELOPMENT_ENVIRONMENT == 1) { //production
define('BASE_URL', 'https://www.ecardgreetings.maersk.com/');
define('DB_USER', 'root');
define('DB_PASSWORD', 'c0nte9do');
define('DB_HOST', 'localhost');
} else if (DEVELOPMENT_ENVIRONMENT == 2) { //staging
define('BASE_URL', 'https://ecardgreetings.stg.maersk.e-typ.es/');
define('DB_USER', 'root');
define('DB_PASSWORD', 'c0nte9do');
define('DB_HOST', 'localhost');
}
// ../config/ip_check.json
{
"data": [
{ "ip": "161.12.32.34"},
{ "ip": "161.12.32.35"},
{ "ip": "195.11.165.114"},
{ "ip": "195.11.165.115"},
{ "ip": "212.77.204.150"},
{ "ip": "195.41.191.13"},
{ "ip": "88.151.179.18"},
{ "ip": "89.218.212.220"},
{ "ip": "77.245.109.146"},
{ "ip": "195.249.183.252"},
{ "ip": "212.37.138.133"},
{ "ip": "200.68.52.109"},
{ "ip": "202.110.225.74"},
{ "ip": "218.16.101.102"},
{ "ip": "108.171.134.161"},
{ "ip": "108.171.129.161"},
{ "ip": "108.171.130.172"},
{ "ip": "212.98.114.250"},
{ "ip": "176.22.105.78"},
{ "ip": "113.161.62.153"},
{ "ip": "80.243.123.68"},
{ "ip": "116.108.173.119"},
{ "ip": "62.242.64.22"},
{ "ip": "115.78.234.253"},
{ "ip": "109.59.93.33"},
{ "ip": "165.225.64.0/24"}
]
}
// federation.ini
federation.trustedissuers.issuer=https://login.windows.net/05d75c05-fa1a-42e7-9cf1-eb416c396f2d/wsfed
federation.trustedissuers.thumbprint=86f8a6df476933df7c2c4423b1b8db38243890d4
federation.trustedissuers.friendlyname=Azure
federation.audienceuris=https://www.ecardgreetings.maersk.com/MGISProd
federation.realm=https://www.ecardgreetings.maersk.com/MGISProd
federation.reply=https://www.ecardgreetings.maersk.com/author.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment