Created
November 10, 2017 19:37
-
-
Save gjreasoner/df9e153c887fa5b7f22f02d4ef973090 to your computer and use it in GitHub Desktop.
Stuff to add to bedrock deploys
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//fixed The Redirect Loop | |
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS'] = 'on'; | |
//fixed Client IP address | |
if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && !empty($_SERVER['HTTP_X_FORWARDED_FOR'])) $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR']; | |
define( 'DBI_AWS_ACCESS_KEY_ID', getenv('AWS_ACCESS_KEY_ID')); | |
define( 'DBI_AWS_SECRET_ACCESS_KEY',getenv('AWS_ACCESS_SECRET')); | |
define('FORCE_ADMIN_SSL',true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment