Skip to content

Commit

Permalink
インストール時のhttpsチェックを無効化
Browse files Browse the repository at this point in the history
  • Loading branch information
seto1 committed Mar 7, 2024
1 parent 5bf7870 commit 738cdf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/baser-core/src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ public function middleware(MiddlewareQueue $middlewareQueue): MiddlewareQueue
->add(new BcFrontMiddleware())
->add(new BcRedirectSubSiteMiddleware());

if (Configure::read('BcApp.adminSsl') && !BcUtil::isConsole() && BcUtil::isAdminSystem()) {
if (Configure::read('BcApp.adminSsl') && !BcUtil::isConsole() && BcUtil::isAdminSystem() && BcUtil::isInstalled()) {
$config = ['redirect' => false];
if(filter_var(env('TRUST_PROXY', false))) {
$config['trustedProxies'] = !empty($_SERVER['HTTP_X_FORWARDED_FOR'])? [$_SERVER['HTTP_X_FORWARDED_FOR']] : [];
Expand Down

0 comments on commit 738cdf0

Please sign in to comment.