Skip to content

Commit

Permalink
Move JWT config to Bedrock env config for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
ColeDCrawford committed Sep 6, 2022
1 parent 9395f48 commit 98c6e22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions bedrock/config/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@
Config::define('SCRIPT_DEBUG', false);
ini_set('display_errors', '0');

/**
* JWT Authentication
*/
Config::define('JWT_AUTH_SECRET_KEY', env('JWT_AUTH_SECRET_KEY'));

/**
* Allow WordPress to detect HTTPS when used behind a reverse proxy or a load balancer
* See https://codex.wordpress.org/Function_Reference/is_ssl#Notes
Expand Down
2 changes: 1 addition & 1 deletion bedrock/web/app/themes/orpheus/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -570,5 +570,5 @@ function twentyseventeen_front_page_template( $template ) {

add_filter( 'allowed_http_origin', '__return_true' );

define('JWT_AUTH_SECRET_KEY', 'quidfaciatlaetassegetes');
// define('JWT_AUTH_SECRET_KEY', 'quidfaciatlaetassegetes'); // Moved to Bedrock config, should not be set in a visible way
define('JWT_AUTH_CORS_ENABLE', false);

0 comments on commit 98c6e22

Please sign in to comment.