오류 수정
This commit is contained in:
@@ -16,7 +16,7 @@ class App extends BaseConfig
|
||||
*
|
||||
* E.g., http://example.com/
|
||||
*/
|
||||
public string $baseURL = 'http://test2-admin.confirms.co.kr';
|
||||
public string $baseURL = 'http://localtest2-admin.confirms.co.kr';
|
||||
|
||||
/**
|
||||
* Allowed Hostnames in the Site URL other than the hostname in the baseURL.
|
||||
@@ -199,4 +199,37 @@ class App extends BaseConfig
|
||||
* @see http://www.w3.org/TR/CSP/
|
||||
*/
|
||||
public bool $CSPEnabled = false;
|
||||
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Constructor - .env 값 로드
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
// .env 파일의 값으로 속성 오버라이드
|
||||
if (env('app.baseURL')) {
|
||||
$this->baseURL = env('app.baseURL');
|
||||
}
|
||||
|
||||
if (env('app.appTimezone')) {
|
||||
$this->appTimezone = env('app.appTimezone');
|
||||
}
|
||||
|
||||
if (env('app.forceGlobalSecureRequests') !== null) {
|
||||
$this->forceGlobalSecureRequests = filter_var(
|
||||
env('app.forceGlobalSecureRequests'),
|
||||
FILTER_VALIDATE_BOOLEAN
|
||||
);
|
||||
}
|
||||
|
||||
if (env('app.CSPEnabled') !== null) {
|
||||
$this->CSPEnabled = filter_var(
|
||||
env('app.CSPEnabled'),
|
||||
FILTER_VALIDATE_BOOLEAN
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user