v7.0.0-beta.2 release

This commit is contained in:
HeuJung committed 2026-04-20 20:37:49 +09:00
1 parent 6595fd0eb5
commit fa8eba7a0d
1165 files changed
+107118 -762127

No files matched your search

+46 -11
View File
@@ -97,19 +97,13 @@ return [
|--------------------------------------------------------------------------
|
| 시스템에서 지원하는 timezone 목록입니다.
| 사용자가 선택 가능한 timezone을 제한합니다.
| PHP 내장 IANA 타임존 전체 목록을 사용합니다.
| SettingsService::getAppConfigForFrontend()에서 오프셋 라벨로 변환되어
| 프론트엔드에 _global.appConfig.supportedTimezones로 노출됩니다.
|
*/
'supported_timezones' => [
'Asia/Seoul',
'Asia/Tokyo',
'America/New_York',
'America/Los_Angeles',
'Europe/London',
'Europe/Paris',
'UTC',
],
'supported_timezones' => \DateTimeZone::listIdentifiers(),
/*
|--------------------------------------------------------------------------
@@ -153,6 +147,22 @@ return [
'translatable_locales' => ['ko', 'en'],
/*
|--------------------------------------------------------------------------
| Locale Names (언어 표시명)
|--------------------------------------------------------------------------
|
| 각 로케일의 표시 이름입니다.
| 프론트엔드에서 언어 탭, 언어 선택 UI 등에 사용됩니다.
| 새로운 언어를 추가할 때는 이 배열에 표시명을 추가하세요.
|
*/
'locale_names' => [
'ko' => '한국어',
'en' => 'English',
],
/*
|--------------------------------------------------------------------------
| Encryption Key
@@ -201,7 +211,20 @@ return [
|
*/
'version' => env('APP_VERSION', '7.0.0-beta.1'),
'version' => env('APP_VERSION', '7.0.0-beta.2'),
/*
|--------------------------------------------------------------------------
| Installer Completed Flag
|--------------------------------------------------------------------------
|
| .env 의 INSTALLER_COMPLETED 플래그를 config 로 노출하여 런타임에서
| Schema::hasTable() 호출 없이 확장 테이블 존재 여부를 빠르게 판정합니다.
| 설치가 완료되지 않은 환경에서는 false 로 두어 기존 hasTable 폴백 유지.
|
*/
'installer_completed' => env('INSTALLER_COMPLETED', false),
/*
|--------------------------------------------------------------------------
@@ -231,6 +254,18 @@ return [
'excludes' => array_filter(array_map('trim', explode(',', env('G7_UPDATE_EXCLUDES', 'node_modules,.git,bootstrap/cache')))),
'backup_only' => array_filter(array_map('trim', explode(',', env('G7_UPDATE_BACKUP_ONLY', 'vendor')))),
'backup_extra' => ['storage/app/settings'],
// 업데이트 종료 시 base_path() 소유자/그룹 기준으로 소유권을 재귀 복원할 경로 목록.
// sudo 실행 시 composer·artisan 등 외부 프로세스가 root 로 생성한 파일을 원상 회복한다.
//
// 기본값은 인스톨러 `public/install/includes/config.php:REQUIRED_DIRECTORIES` 의
// SSoT 경로와 1:1 정렬. 상위 → 하위 순서로 나열하여 복원 루프가 디렉토리 단위
// chown 후 하위 경로별 개별 복원을 수행하게 한다.
//
// 환경변수 `G7_UPDATE_RESTORE_OWNERSHIP` 로 공유 호스팅 등 축소 필요 시 재정의 가능.
'restore_ownership' => array_filter(array_map('trim', explode(',', env(
'G7_UPDATE_RESTORE_OWNERSHIP',
'storage,bootstrap/cache,vendor,modules,modules/_pending,plugins,plugins/_pending,templates,templates/_pending,storage/app/core_pending'
)))),
],
];
+113 -134
View File
@@ -27,11 +27,12 @@ return [
'description' => ['ko' => '사용자 관리 권한', 'en' => 'User management permissions'],
'category' => 'users',
'order' => 1,
'type' => 'admin',
'permissions' => [
['identifier' => 'core.users.read', 'name' => ['ko' => '사용자 조회', 'en' => 'View Users'], 'description' => ['ko' => '사용자 목록 및 상세 정보를 조회할 수 있습니다.', 'en' => 'Can view user list and details.'], 'order' => 1, 'resource_route_key' => 'user', 'owner_key' => 'id'],
['identifier' => 'core.users.create', 'name' => ['ko' => '사용자 생성', 'en' => 'Create Users'], 'description' => ['ko' => '새로운 사용자를 생성할 수 있습니다.', 'en' => 'Can create new users.'], 'order' => 2],
['identifier' => 'core.users.update', 'name' => ['ko' => '사용자 수정', 'en' => 'Update Users'], 'description' => ['ko' => '사용자 정보를 수정할 수 있습니다.', 'en' => 'Can update user information.'], 'order' => 3, 'resource_route_key' => 'user', 'owner_key' => 'id'],
['identifier' => 'core.users.delete', 'name' => ['ko' => '사용자 삭제', 'en' => 'Delete Users'], 'description' => ['ko' => '사용자를 삭제할 수 있습니다.', 'en' => 'Can delete users.'], 'order' => 4, 'resource_route_key' => 'user', 'owner_key' => 'id'],
['identifier' => 'core.users.read', 'type' => 'admin', 'name' => ['ko' => '사용자 조회', 'en' => 'View Users'], 'description' => ['ko' => '사용자 목록 및 상세 정보를 조회할 수 있습니다.', 'en' => 'Can view user list and details.'], 'order' => 1, 'resource_route_key' => 'user', 'owner_key' => 'id'],
['identifier' => 'core.users.create', 'type' => 'admin', 'name' => ['ko' => '사용자 생성', 'en' => 'Create Users'], 'description' => ['ko' => '새로운 사용자를 생성할 수 있습니다.', 'en' => 'Can create new users.'], 'order' => 2],
['identifier' => 'core.users.update', 'type' => 'admin', 'name' => ['ko' => '사용자 수정', 'en' => 'Update Users'], 'description' => ['ko' => '사용자 정보를 수정할 수 있습니다.', 'en' => 'Can update user information.'], 'order' => 3, 'resource_route_key' => 'user', 'owner_key' => 'id'],
['identifier' => 'core.users.delete', 'type' => 'admin', 'name' => ['ko' => '사용자 삭제', 'en' => 'Delete Users'], 'description' => ['ko' => '사용자를 삭제할 수 있습니다.', 'en' => 'Can delete users.'], 'order' => 4, 'resource_route_key' => 'user', 'owner_key' => 'id'],
],
],
[
@@ -40,11 +41,12 @@ return [
'description' => ['ko' => '메뉴 관리 권한', 'en' => 'Menu management permissions'],
'category' => 'menus',
'order' => 2,
'type' => 'admin',
'permissions' => [
['identifier' => 'core.menus.read', 'name' => ['ko' => '메뉴 조회', 'en' => 'View Menus'], 'description' => ['ko' => '메뉴 목록을 조회할 수 있습니다.', 'en' => 'Can view menu list.'], 'order' => 1, 'resource_route_key' => 'menu', 'owner_key' => 'created_by'],
['identifier' => 'core.menus.create', 'name' => ['ko' => '메뉴 생성', 'en' => 'Create Menus'], 'description' => ['ko' => '새로운 메뉴를 생성할 수 있습니다.', 'en' => 'Can create new menus.'], 'order' => 2],
['identifier' => 'core.menus.update', 'name' => ['ko' => '메뉴 수정', 'en' => 'Update Menus'], 'description' => ['ko' => '메뉴 정보를 수정할 수 있습니다.', 'en' => 'Can update menu information.'], 'order' => 3, 'resource_route_key' => 'menu', 'owner_key' => 'created_by'],
['identifier' => 'core.menus.delete', 'name' => ['ko' => '메뉴 삭제', 'en' => 'Delete Menus'], 'description' => ['ko' => '메뉴를 삭제할 수 있습니다.', 'en' => 'Can delete menus.'], 'order' => 4, 'resource_route_key' => 'menu', 'owner_key' => 'created_by'],
['identifier' => 'core.menus.read', 'type' => 'admin', 'name' => ['ko' => '메뉴 조회', 'en' => 'View Menus'], 'description' => ['ko' => '메뉴 목록을 조회할 수 있습니다.', 'en' => 'Can view menu list.'], 'order' => 1, 'resource_route_key' => 'menu', 'owner_key' => 'created_by'],
['identifier' => 'core.menus.create', 'type' => 'admin', 'name' => ['ko' => '메뉴 생성', 'en' => 'Create Menus'], 'description' => ['ko' => '새로운 메뉴를 생성할 수 있습니다.', 'en' => 'Can create new menus.'], 'order' => 2],
['identifier' => 'core.menus.update', 'type' => 'admin', 'name' => ['ko' => '메뉴 수정', 'en' => 'Update Menus'], 'description' => ['ko' => '메뉴 정보를 수정할 수 있습니다.', 'en' => 'Can update menu information.'], 'order' => 3, 'resource_route_key' => 'menu', 'owner_key' => 'created_by'],
['identifier' => 'core.menus.delete', 'type' => 'admin', 'name' => ['ko' => '메뉴 삭제', 'en' => 'Delete Menus'], 'description' => ['ko' => '메뉴를 삭제할 수 있습니다.', 'en' => 'Can delete menus.'], 'order' => 4, 'resource_route_key' => 'menu', 'owner_key' => 'created_by'],
],
],
[
@@ -53,11 +55,12 @@ return [
'description' => ['ko' => '모듈 관리 권한', 'en' => 'Module management permissions'],
'category' => 'modules',
'order' => 3,
'type' => 'admin',
'permissions' => [
['identifier' => 'core.modules.read', 'name' => ['ko' => '모듈 조회', 'en' => 'View Modules'], 'description' => ['ko' => '모듈 목록을 조회할 수 있습니다.', 'en' => 'Can view module list.'], 'order' => 1],
['identifier' => 'core.modules.install', 'name' => ['ko' => '모듈 설치', 'en' => 'Install Modules'], 'description' => ['ko' => '새로운 모듈을 설치할 수 있습니다.', 'en' => 'Can install new modules.'], 'order' => 2],
['identifier' => 'core.modules.activate', 'name' => ['ko' => '모듈 활성화', 'en' => 'Activate Modules'], 'description' => ['ko' => '모듈을 활성화/비활성화할 수 있습니다.', 'en' => 'Can activate/deactivate modules.'], 'order' => 3],
['identifier' => 'core.modules.uninstall', 'name' => ['ko' => '모듈 삭제', 'en' => 'Uninstall Modules'], 'description' => ['ko' => '모듈을 삭제할 수 있습니다.', 'en' => 'Can uninstall modules.'], 'order' => 4],
['identifier' => 'core.modules.read', 'type' => 'admin', 'name' => ['ko' => '모듈 조회', 'en' => 'View Modules'], 'description' => ['ko' => '모듈 목록을 조회할 수 있습니다.', 'en' => 'Can view module list.'], 'order' => 1],
['identifier' => 'core.modules.install', 'type' => 'admin', 'name' => ['ko' => '모듈 설치', 'en' => 'Install Modules'], 'description' => ['ko' => '새로운 모듈을 설치할 수 있습니다.', 'en' => 'Can install new modules.'], 'order' => 2],
['identifier' => 'core.modules.activate', 'type' => 'admin', 'name' => ['ko' => '모듈 활성화', 'en' => 'Activate Modules'], 'description' => ['ko' => '모듈을 활성화/비활성화할 수 있습니다.', 'en' => 'Can activate/deactivate modules.'], 'order' => 3],
['identifier' => 'core.modules.uninstall', 'type' => 'admin', 'name' => ['ko' => '모듈 삭제', 'en' => 'Uninstall Modules'], 'description' => ['ko' => '모듈을 삭제할 수 있습니다.', 'en' => 'Can uninstall modules.'], 'order' => 4],
],
],
[
@@ -66,12 +69,13 @@ return [
'description' => ['ko' => '플러그인 관리 권한', 'en' => 'Plugin management permissions'],
'category' => 'plugins',
'order' => 4,
'type' => 'admin',
'permissions' => [
['identifier' => 'core.plugins.read', 'name' => ['ko' => '플러그인 조회', 'en' => 'View Plugins'], 'description' => ['ko' => '플러그인 목록을 조회할 수 있습니다.', 'en' => 'Can view plugin list.'], 'order' => 1],
['identifier' => 'core.plugins.install', 'name' => ['ko' => '플러그인 설치', 'en' => 'Install Plugins'], 'description' => ['ko' => '새로운 플러그인을 설치할 수 있습니다.', 'en' => 'Can install new plugins.'], 'order' => 2],
['identifier' => 'core.plugins.activate', 'name' => ['ko' => '플러그인 활성화', 'en' => 'Activate Plugins'], 'description' => ['ko' => '플러그인을 활성화/비활성화할 수 있습니다.', 'en' => 'Can activate/deactivate plugins.'], 'order' => 3],
['identifier' => 'core.plugins.update', 'name' => ['ko' => '플러그인 설정', 'en' => 'Configure Plugins'], 'description' => ['ko' => '플러그인 환경설정을 수정할 수 있습니다.', 'en' => 'Can update plugin settings.'], 'order' => 4],
['identifier' => 'core.plugins.uninstall', 'name' => ['ko' => '플러그인 삭제', 'en' => 'Uninstall Plugins'], 'description' => ['ko' => '플러그인을 삭제할 수 있습니다.', 'en' => 'Can uninstall plugins.'], 'order' => 5],
['identifier' => 'core.plugins.read', 'type' => 'admin', 'name' => ['ko' => '플러그인 조회', 'en' => 'View Plugins'], 'description' => ['ko' => '플러그인 목록을 조회할 수 있습니다.', 'en' => 'Can view plugin list.'], 'order' => 1],
['identifier' => 'core.plugins.install', 'type' => 'admin', 'name' => ['ko' => '플러그인 설치', 'en' => 'Install Plugins'], 'description' => ['ko' => '새로운 플러그인을 설치할 수 있습니다.', 'en' => 'Can install new plugins.'], 'order' => 2],
['identifier' => 'core.plugins.activate', 'type' => 'admin', 'name' => ['ko' => '플러그인 활성화', 'en' => 'Activate Plugins'], 'description' => ['ko' => '플러그인을 활성화/비활성화할 수 있습니다.', 'en' => 'Can activate/deactivate plugins.'], 'order' => 3],
['identifier' => 'core.plugins.update', 'type' => 'admin', 'name' => ['ko' => '플러그인 설정', 'en' => 'Configure Plugins'], 'description' => ['ko' => '플러그인 환경설정을 수정할 수 있습니다.', 'en' => 'Can update plugin settings.'], 'order' => 4],
['identifier' => 'core.plugins.uninstall', 'type' => 'admin', 'name' => ['ko' => '플러그인 삭제', 'en' => 'Uninstall Plugins'], 'description' => ['ko' => '플러그인을 삭제할 수 있습니다.', 'en' => 'Can uninstall plugins.'], 'order' => 5],
],
],
[
@@ -80,12 +84,13 @@ return [
'description' => ['ko' => '템플릿 관리 권한', 'en' => 'Template management permissions'],
'category' => 'templates',
'order' => 5,
'type' => 'admin',
'permissions' => [
['identifier' => 'core.templates.read', 'name' => ['ko' => '템플릿 조회', 'en' => 'View Templates'], 'description' => ['ko' => '템플릿 목록을 조회할 수 있습니다.', 'en' => 'Can view template list.'], 'order' => 1],
['identifier' => 'core.templates.install', 'name' => ['ko' => '템플릿 설치', 'en' => 'Install Templates'], 'description' => ['ko' => '새로운 템플릿을 설치할 수 있습니다.', 'en' => 'Can install new templates.'], 'order' => 2],
['identifier' => 'core.templates.activate', 'name' => ['ko' => '템플릿 활성화', 'en' => 'Activate Templates'], 'description' => ['ko' => '템플릿을 활성화/비활성화할 수 있습니다.', 'en' => 'Can activate/deactivate templates.'], 'order' => 3],
['identifier' => 'core.templates.uninstall', 'name' => ['ko' => '템플릿 삭제', 'en' => 'Uninstall Templates'], 'description' => ['ko' => '템플릿을 삭제할 수 있습니다.', 'en' => 'Can uninstall templates.'], 'order' => 4],
['identifier' => 'core.templates.layouts.edit', 'name' => ['ko' => '레이아웃 편집', 'en' => 'Edit Layouts'], 'description' => ['ko' => '템플릿 레이아웃을 편집할 수 있습니다.', 'en' => 'Can edit template layouts.'], 'order' => 5],
['identifier' => 'core.templates.read', 'type' => 'admin', 'name' => ['ko' => '템플릿 조회', 'en' => 'View Templates'], 'description' => ['ko' => '템플릿 목록을 조회할 수 있습니다.', 'en' => 'Can view template list.'], 'order' => 1],
['identifier' => 'core.templates.install', 'type' => 'admin', 'name' => ['ko' => '템플릿 설치', 'en' => 'Install Templates'], 'description' => ['ko' => '새로운 템플릿을 설치할 수 있습니다.', 'en' => 'Can install new templates.'], 'order' => 2],
['identifier' => 'core.templates.activate', 'type' => 'admin', 'name' => ['ko' => '템플릿 활성화', 'en' => 'Activate Templates'], 'description' => ['ko' => '템플릿을 활성화/비활성화할 수 있습니다.', 'en' => 'Can activate/deactivate templates.'], 'order' => 3],
['identifier' => 'core.templates.uninstall', 'type' => 'admin', 'name' => ['ko' => '템플릿 삭제', 'en' => 'Uninstall Templates'], 'description' => ['ko' => '템플릿을 삭제할 수 있습니다.', 'en' => 'Can uninstall templates.'], 'order' => 4],
['identifier' => 'core.templates.layouts.edit', 'type' => 'admin', 'name' => ['ko' => '레이아웃 편집', 'en' => 'Edit Layouts'], 'description' => ['ko' => '템플릿 레이아웃을 편집할 수 있습니다.', 'en' => 'Can edit template layouts.'], 'order' => 5],
],
],
[
@@ -94,22 +99,50 @@ return [
'description' => ['ko' => '역할 및 권한 관리 권한', 'en' => 'Role and permission management permissions'],
'category' => 'permissions',
'order' => 6,
'type' => 'admin',
'permissions' => [
['identifier' => 'core.permissions.read', 'name' => ['ko' => '권한 조회', 'en' => 'View Permissions'], 'description' => ['ko' => '역할 및 권한 목록을 조회할 수 있습니다.', 'en' => 'Can view roles and permissions.'], 'order' => 1],
['identifier' => 'core.permissions.create', 'name' => ['ko' => '역할 생성', 'en' => 'Create Roles'], 'description' => ['ko' => '새로운 역할을 생성할 수 있습니다.', 'en' => 'Can create new roles.'], 'order' => 2],
['identifier' => 'core.permissions.update', 'name' => ['ko' => '역할 수정', 'en' => 'Update Roles'], 'description' => ['ko' => '역할 정보와 권한을 수정할 수 있습니다.', 'en' => 'Can update role information and permissions.'], 'order' => 3],
['identifier' => 'core.permissions.delete', 'name' => ['ko' => '역할 삭제', 'en' => 'Delete Roles'], 'description' => ['ko' => '역할을 삭제할 수 있습니다.', 'en' => 'Can delete roles.'], 'order' => 4],
['identifier' => 'core.permissions.read', 'type' => 'admin', 'name' => ['ko' => '권한 조회', 'en' => 'View Permissions'], 'description' => ['ko' => '역할 및 권한 목록을 조회할 수 있습니다.', 'en' => 'Can view roles and permissions.'], 'order' => 1],
['identifier' => 'core.permissions.create', 'type' => 'admin', 'name' => ['ko' => '역할 생성', 'en' => 'Create Roles'], 'description' => ['ko' => '새로운 역할을 생성할 수 있습니다.', 'en' => 'Can create new roles.'], 'order' => 2],
['identifier' => 'core.permissions.update', 'type' => 'admin', 'name' => ['ko' => '역할 수정', 'en' => 'Update Roles'], 'description' => ['ko' => '역할 정보와 권한을 수정할 수 있습니다.', 'en' => 'Can update role information and permissions.'], 'order' => 3],
['identifier' => 'core.permissions.delete', 'type' => 'admin', 'name' => ['ko' => '역할 삭제', 'en' => 'Delete Roles'], 'description' => ['ko' => '역할을 삭제할 수 있습니다.', 'en' => 'Can delete roles.'], 'order' => 4],
],
],
[
'identifier' => 'core.mail-send-logs',
'name' => ['ko' => '메일 발송 이력', 'en' => 'Mail Send Logs'],
'description' => ['ko' => '메일 발송 이력 관리 권한', 'en' => 'Mail send log management permissions'],
'category' => 'mail-send-logs',
'identifier' => 'core.notification-logs',
'name' => ['ko' => '알림 발송 이력', 'en' => 'Notification Logs'],
'description' => ['ko' => '알림 발송 이력 관리 권한', 'en' => 'Notification log management permissions'],
'category' => 'notification-logs',
'order' => 7,
'type' => 'admin',
'permissions' => [
['identifier' => 'core.mail-send-logs.read', 'name' => ['ko' => '발송 이력 조회', 'en' => 'View Mail Send Logs'], 'description' => ['ko' => '메일 발송 이력을 조회할 수 있습니다.', 'en' => 'Can view mail send logs.'], 'order' => 1],
['identifier' => 'core.mail-send-logs.delete', 'name' => ['ko' => '발송 이력 삭제', 'en' => 'Delete Mail Send Logs'], 'description' => ['ko' => '메일 발송 이력을 삭제할 수 있습니다.', 'en' => 'Can delete mail send logs.'], 'order' => 2],
['identifier' => 'core.notification-logs.read', 'type' => 'admin', 'name' => ['ko' => '발송 이력 조회', 'en' => 'View Notification Logs'], 'description' => ['ko' => '알림 발송 이력을 조회할 수 있습니다.', 'en' => 'Can view notification logs.'], 'order' => 1],
['identifier' => 'core.notification-logs.delete', 'type' => 'admin', 'name' => ['ko' => '발송 이력 삭제', 'en' => 'Delete Notification Logs'], 'description' => ['ko' => '알림 발송 이력을 삭제할 수 있습니다.', 'en' => 'Can delete notification logs.'], 'order' => 2],
],
],
[
'identifier' => 'core.notifications',
'name' => ['ko' => '알림 (관리자)', 'en' => 'Notifications (Admin)'],
'description' => ['ko' => '관리자용 알림 관리 권한 (관리자 화면에서 사용)', 'en' => 'Admin notification management permissions (used in admin UI)'],
'category' => 'notifications',
'order' => 7.5,
'type' => 'admin',
'permissions' => [
['identifier' => 'core.notifications.read', 'type' => 'admin', 'name' => ['ko' => '알림 조회', 'en' => 'View Notifications'], 'description' => ['ko' => '알림 목록 및 읽지 않은 수를 조회할 수 있습니다.', 'en' => 'Can view notification list and unread count.'], 'order' => 1],
['identifier' => 'core.notifications.update', 'type' => 'admin', 'name' => ['ko' => '알림 읽음 처리', 'en' => 'Mark Notifications Read'], 'description' => ['ko' => '알림을 읽음 처리할 수 있습니다.', 'en' => 'Can mark notifications as read.'], 'order' => 2],
['identifier' => 'core.notifications.delete', 'type' => 'admin', 'name' => ['ko' => '알림 삭제', 'en' => 'Delete Notifications'], 'description' => ['ko' => '알림을 삭제할 수 있습니다.', 'en' => 'Can delete notifications.'], 'order' => 3],
],
],
[
'identifier' => 'core.user-notifications',
'name' => ['ko' => '알림 (사용자)', 'en' => 'Notifications (User)'],
'description' => ['ko' => '사용자용 알림 권한 (사용자 화면에서 본인 알림 관리)', 'en' => 'User notification permissions (managing own notifications in user UI)'],
'category' => 'user-notifications',
'order' => 7.6,
'type' => 'user',
'permissions' => [
['identifier' => 'core.user-notifications.read', 'type' => 'user', 'name' => ['ko' => '알림 조회', 'en' => 'View Notifications'], 'description' => ['ko' => '본인의 알림 목록 및 읽지 않은 수를 조회할 수 있습니다.', 'en' => 'Can view own notification list and unread count.'], 'order' => 1],
['identifier' => 'core.user-notifications.update', 'type' => 'user', 'name' => ['ko' => '알림 읽음 처리', 'en' => 'Mark Notifications Read'], 'description' => ['ko' => '본인의 알림을 읽음 처리할 수 있습니다.', 'en' => 'Can mark own notifications as read.'], 'order' => 2],
['identifier' => 'core.user-notifications.delete', 'type' => 'user', 'name' => ['ko' => '알림 삭제', 'en' => 'Delete Notifications'], 'description' => ['ko' => '본인의 알림을 삭제할 수 있습니다.', 'en' => 'Can delete own notifications.'], 'order' => 3],
],
],
[
@@ -118,9 +151,10 @@ return [
'description' => ['ko' => '시스템 환경설정 권한', 'en' => 'System settings permissions'],
'category' => 'settings',
'order' => 8,
'type' => 'admin',
'permissions' => [
['identifier' => 'core.settings.read', 'name' => ['ko' => '설정 조회', 'en' => 'View Settings'], 'description' => ['ko' => '시스템 설정을 조회할 수 있습니다.', 'en' => 'Can view system settings.'], 'order' => 1],
['identifier' => 'core.settings.update', 'name' => ['ko' => '설정 수정', 'en' => 'Update Settings'], 'description' => ['ko' => '시스템 설정을 수정할 수 있습니다.', 'en' => 'Can update system settings.'], 'order' => 2],
['identifier' => 'core.settings.read', 'type' => 'admin', 'name' => ['ko' => '설정 조회', 'en' => 'View Settings'], 'description' => ['ko' => '시스템 설정을 조회할 수 있습니다.', 'en' => 'Can view system settings.'], 'order' => 1],
['identifier' => 'core.settings.update', 'type' => 'admin', 'name' => ['ko' => '설정 수정', 'en' => 'Update Settings'], 'description' => ['ko' => '시스템 설정을 수정할 수 있습니다.', 'en' => 'Can update system settings.'], 'order' => 2],
],
],
[
@@ -129,12 +163,13 @@ return [
'description' => ['ko' => '대시보드 접근 권한', 'en' => 'Dashboard access permissions'],
'category' => 'dashboard',
'order' => 9,
'type' => 'admin',
'permissions' => [
['identifier' => 'core.dashboard.read', 'name' => ['ko' => '대시보드 조회', 'en' => 'View Dashboard'], 'description' => ['ko' => '대시보드 통계 및 정보를 조회할 수 있습니다.', 'en' => 'Can view dashboard statistics and information.'], 'order' => 1],
['identifier' => 'core.dashboard.system-status', 'name' => ['ko' => '시스템 상태', 'en' => 'System Status'], 'description' => ['ko' => '시스템 상태 정보를 조회할 수 있습니다.', 'en' => 'Can view system status information.'], 'order' => 2],
['identifier' => 'core.dashboard.resources', 'name' => ['ko' => '시스템 리소스', 'en' => 'System Resources'], 'description' => ['ko' => 'CPU, 메모리, 디스크 사용량을 조회할 수 있습니다.', 'en' => 'Can view CPU, memory, and disk usage.'], 'order' => 3],
['identifier' => 'core.dashboard.activities', 'name' => ['ko' => '최근 활동', 'en' => 'Recent Activities'], 'description' => ['ko' => '최근 활동 이력을 조회할 수 있습니다.', 'en' => 'Can view recent activity history.'], 'order' => 4, 'resource_route_key' => 'activityLog', 'owner_key' => 'user_id'],
['identifier' => 'core.dashboard.alerts', 'name' => ['ko' => '시스템 알림', 'en' => 'System Alerts'], 'description' => ['ko' => '시스템 알림을 조회할 수 있습니다.', 'en' => 'Can view system alerts.'], 'order' => 5],
['identifier' => 'core.dashboard.read', 'type' => 'admin', 'name' => ['ko' => '대시보드 조회', 'en' => 'View Dashboard'], 'description' => ['ko' => '대시보드 통계 및 정보를 조회할 수 있습니다.', 'en' => 'Can view dashboard statistics and information.'], 'order' => 1],
['identifier' => 'core.dashboard.system-status', 'type' => 'admin', 'name' => ['ko' => '시스템 상태', 'en' => 'System Status'], 'description' => ['ko' => '시스템 상태 정보를 조회할 수 있습니다.', 'en' => 'Can view system status information.'], 'order' => 2],
['identifier' => 'core.dashboard.resources', 'type' => 'admin', 'name' => ['ko' => '시스템 리소스', 'en' => 'System Resources'], 'description' => ['ko' => 'CPU, 메모리, 디스크 사용량을 조회할 수 있습니다.', 'en' => 'Can view CPU, memory, and disk usage.'], 'order' => 3],
['identifier' => 'core.dashboard.activities', 'type' => 'admin', 'name' => ['ko' => '최근 활동', 'en' => 'Recent Activities'], 'description' => ['ko' => '최근 활동 이력을 조회할 수 있습니다.', 'en' => 'Can view recent activity history.'], 'order' => 4, 'resource_route_key' => 'activityLog', 'owner_key' => 'user_id'],
['identifier' => 'core.dashboard.alerts', 'type' => 'admin', 'name' => ['ko' => '시스템 알림', 'en' => 'System Alerts'], 'description' => ['ko' => '시스템 알림을 조회할 수 있습니다.', 'en' => 'Can view system alerts.'], 'order' => 5],
],
],
[
@@ -143,9 +178,10 @@ return [
'description' => ['ko' => '활동 로그 조회 권한', 'en' => 'Activity log access permissions'],
'category' => 'activities',
'order' => 10,
'type' => 'admin',
'permissions' => [
['identifier' => 'core.activities.read', 'name' => ['ko' => '활동 로그 조회', 'en' => 'View Activity Logs'], 'description' => ['ko' => '활동 로그를 조회할 수 있습니다.', 'en' => 'Can view activity logs.'], 'order' => 1, 'resource_route_key' => 'activityLog', 'owner_key' => 'user_id'],
['identifier' => 'core.activities.delete', 'name' => ['ko' => '활동 로그 삭제', 'en' => 'Delete Activity Logs'], 'description' => ['ko' => '활동 로그를 삭제할 수 있습니다.', 'en' => 'Can delete activity logs.'], 'order' => 2],
['identifier' => 'core.activities.read', 'type' => 'admin', 'name' => ['ko' => '활동 로그 조회', 'en' => 'View Activity Logs'], 'description' => ['ko' => '활동 로그를 조회할 수 있습니다.', 'en' => 'Can view activity logs.'], 'order' => 1, 'resource_route_key' => 'activityLog', 'owner_key' => 'user_id'],
['identifier' => 'core.activities.delete', 'type' => 'admin', 'name' => ['ko' => '활동 로그 삭제', 'en' => 'Delete Activity Logs'], 'description' => ['ko' => '활동 로그를 삭제할 수 있습니다.', 'en' => 'Can delete activity logs.'], 'order' => 2],
],
],
[
@@ -154,10 +190,11 @@ return [
'description' => ['ko' => '첨부파일 관리 권한', 'en' => 'Attachment management permissions'],
'category' => 'attachments',
'order' => 11,
'type' => 'admin',
'permissions' => [
['identifier' => 'core.attachments.create', 'name' => ['ko' => '첨부파일 업로드', 'en' => 'Upload Attachments'], 'description' => ['ko' => '첨부파일을 업로드할 수 있습니다.', 'en' => 'Can upload attachments.'], 'order' => 1],
['identifier' => 'core.attachments.update', 'name' => ['ko' => '첨부파일 수정', 'en' => 'Update Attachments'], 'description' => ['ko' => '첨부파일 정보 및 순서를 수정할 수 있습니다.', 'en' => 'Can update attachment information and order.'], 'order' => 2, 'resource_route_key' => 'attachment', 'owner_key' => 'created_by'],
['identifier' => 'core.attachments.delete', 'name' => ['ko' => '첨부파일 삭제', 'en' => 'Delete Attachments'], 'description' => ['ko' => '첨부파일을 삭제할 수 있습니다.', 'en' => 'Can delete attachments.'], 'order' => 3, 'resource_route_key' => 'attachment', 'owner_key' => 'created_by'],
['identifier' => 'core.attachments.create', 'type' => 'admin', 'name' => ['ko' => '첨부파일 업로드', 'en' => 'Upload Attachments'], 'description' => ['ko' => '첨부파일을 업로드할 수 있습니다.', 'en' => 'Can upload attachments.'], 'order' => 1],
['identifier' => 'core.attachments.update', 'type' => 'admin', 'name' => ['ko' => '첨부파일 수정', 'en' => 'Update Attachments'], 'description' => ['ko' => '첨부파일 정보 및 순서를 수정할 수 있습니다.', 'en' => 'Can update attachment information and order.'], 'order' => 2, 'resource_route_key' => 'attachment', 'owner_key' => 'created_by'],
['identifier' => 'core.attachments.delete', 'type' => 'admin', 'name' => ['ko' => '첨부파일 삭제', 'en' => 'Delete Attachments'], 'description' => ['ko' => '첨부파일을 삭제할 수 있습니다.', 'en' => 'Can delete attachments.'], 'order' => 3, 'resource_route_key' => 'attachment', 'owner_key' => 'created_by'],
],
],
[
@@ -166,12 +203,13 @@ return [
'description' => ['ko' => '스케줄 작업 관리 권한', 'en' => 'Schedule task management permissions'],
'category' => 'schedules',
'order' => 12,
'type' => 'admin',
'permissions' => [
['identifier' => 'core.schedules.read', 'name' => ['ko' => '스케줄 조회', 'en' => 'View Schedules'], 'description' => ['ko' => '스케줄 목록 및 상세 정보를 조회할 수 있습니다.', 'en' => 'Can view schedule list and details.'], 'order' => 1],
['identifier' => 'core.schedules.create', 'name' => ['ko' => '스케줄 생성', 'en' => 'Create Schedules'], 'description' => ['ko' => '새로운 스케줄을 생성할 수 있습니다.', 'en' => 'Can create new schedules.'], 'order' => 2],
['identifier' => 'core.schedules.update', 'name' => ['ko' => '스케줄 수정', 'en' => 'Update Schedules'], 'description' => ['ko' => '스케줄 정보를 수정할 수 있습니다.', 'en' => 'Can update schedule information.'], 'order' => 3],
['identifier' => 'core.schedules.delete', 'name' => ['ko' => '스케줄 삭제', 'en' => 'Delete Schedules'], 'description' => ['ko' => '스케줄을 삭제할 수 있습니다.', 'en' => 'Can delete schedules.'], 'order' => 4],
['identifier' => 'core.schedules.run', 'name' => ['ko' => '스케줄 실행', 'en' => 'Run Schedules'], 'description' => ['ko' => '스케줄을 수동으로 실행할 수 있습니다.', 'en' => 'Can manually run schedules.'], 'order' => 5],
['identifier' => 'core.schedules.read', 'type' => 'admin', 'name' => ['ko' => '스케줄 조회', 'en' => 'View Schedules'], 'description' => ['ko' => '스케줄 목록 및 상세 정보를 조회할 수 있습니다.', 'en' => 'Can view schedule list and details.'], 'order' => 1],
['identifier' => 'core.schedules.create', 'type' => 'admin', 'name' => ['ko' => '스케줄 생성', 'en' => 'Create Schedules'], 'description' => ['ko' => '새로운 스케줄을 생성할 수 있습니다.', 'en' => 'Can create new schedules.'], 'order' => 2],
['identifier' => 'core.schedules.update', 'type' => 'admin', 'name' => ['ko' => '스케줄 수정', 'en' => 'Update Schedules'], 'description' => ['ko' => '스케줄 정보를 수정할 수 있습니다.', 'en' => 'Can update schedule information.'], 'order' => 3],
['identifier' => 'core.schedules.delete', 'type' => 'admin', 'name' => ['ko' => '스케줄 삭제', 'en' => 'Delete Schedules'], 'description' => ['ko' => '스케줄을 삭제할 수 있습니다.', 'en' => 'Can delete schedules.'], 'order' => 4],
['identifier' => 'core.schedules.run', 'type' => 'admin', 'name' => ['ko' => '스케줄 실행', 'en' => 'Run Schedules'], 'description' => ['ko' => '스케줄을 수동으로 실행할 수 있습니다.', 'en' => 'Can manually run schedules.'], 'order' => 5],
],
],
],
@@ -204,7 +242,7 @@ return [
'core.dashboard.activities',
'core.activities.read',
'core.attachments.create', 'core.attachments.update', 'core.attachments.delete',
'core.mail-send-logs.read',
'core.notification-logs.read',
],
// 권한별 스코프 지정 (self: 본인 소유만, role: 같은 역할 범위, 미지정: 전체)
'permission_scopes' => [
@@ -213,6 +251,7 @@ return [
'core.activities.read' => 'self',
'core.attachments.update' => 'self',
'core.attachments.delete' => 'self',
'core.notification-logs.read' => 'self',
],
],
[
@@ -220,7 +259,9 @@ return [
'name' => ['ko' => '일반 사용자', 'en' => 'User'],
'description' => ['ko' => '기본 사용자 역할입니다.', 'en' => 'Default user role.'],
'attributes' => ['is_active' => true],
'permissions' => [],
'permissions' => [
'core.user-notifications.read', 'core.user-notifications.update', 'core.user-notifications.delete',
],
],
[
'identifier' => 'guest',
@@ -260,10 +301,10 @@ return [
'is_active' => true,
],
[
'slug' => 'admin-mail-send-logs',
'name' => ['ko' => '메일 발송 이력', 'en' => 'Mail Send Logs'],
'url' => '/admin/mail-send-logs',
'icon' => 'fas fa-paper-plane',
'slug' => 'admin-notification-logs',
'name' => ['ko' => '알림 발송 이력', 'en' => 'Notification Logs'],
'url' => '/admin/notification-logs',
'icon' => 'fas fa-bell',
'parent_id' => null,
'order' => 3,
'is_active' => true,
@@ -344,89 +385,27 @@ return [
/*
|--------------------------------------------------------------------------
| 코어 메일 템플릿 정의
| 코어 알림 정의
|--------------------------------------------------------------------------
| MailTemplateSeeder 및 CoreUpdateService::syncCoreMailTemplates()에서 사용
| 새 메일 템플릿 추가 시 이 배열에 추가하면 설치/업데이트 모두 반영됩니다.
| NotificationDefinitionSeeder에서 사용됩니다.
| 코어 알림 타입: welcome, reset_password, password_changed
*/
'mail_templates' => [
[
'type' => 'welcome',
'subject' => [
'ko' => '[{app_name}] 회원가입을 환영합니다',
'en' => '[{app_name}] Welcome to Our Service',
],
'body' => [
'ko' => '<h1>{name}님, 환영합니다!</h1>'
.'<p>{app_name}에 가입해 주셔서 감사합니다.</p>'
.'<p>이제 모든 서비스를 이용하실 수 있습니다. 아래 버튼을 클릭하여 로그인해 주세요.</p>'
.'<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="margin: 24px 0;"><tr><td align="center"><a href="{action_url}" style="display: inline-block; padding: 12px 32px; background-color: #2d3748; color: #ffffff; text-decoration: none; border-radius: 4px; font-weight: 600; font-size: 14px;">로그인하기</a></td></tr></table>'
.'<p>감사합니다,<br><a href="{site_url}">{app_name}</a></p>',
'en' => '<h1>Welcome, {name}!</h1>'
.'<p>Thank you for joining {app_name}.</p>'
.'<p>You now have access to all our services. Click the button below to log in.</p>'
.'<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="margin: 24px 0;"><tr><td align="center"><a href="{action_url}" style="display: inline-block; padding: 12px 32px; background-color: #2d3748; color: #ffffff; text-decoration: none; border-radius: 4px; font-weight: 600; font-size: 14px;">Log In</a></td></tr></table>'
.'<p>Thank you,<br><a href="{site_url}">{app_name}</a></p>',
],
'variables' => [
['key' => 'name', 'description' => '수신자 이름'],
['key' => 'app_name', 'description' => '사이트명'],
['key' => 'action_url', 'description' => '로그인 페이지 URL'],
['key' => 'site_url', 'description' => '사이트 URL'],
],
'notification_definitions' => [
'welcome' => [
'hook_prefix' => 'core.auth',
'hooks' => ['core.auth.after_register'],
'channels' => ['mail'],
],
[
'type' => 'reset_password',
'subject' => [
'ko' => '[{app_name}] 비밀번호 재설정 안내',
'en' => '[{app_name}] Password Reset Request',
],
'body' => [
'ko' => '<h1>{name}님, 안녕하세요.</h1>'
.'<p>비밀번호 재설정 요청을 받았습니다. 아래 버튼을 클릭하여 비밀번호를 재설정해 주세요.</p>'
.'<p>이 링크는 <strong>{expire_minutes}분</strong> 후 만료됩니다.</p>'
.'<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="margin: 24px 0;"><tr><td align="center"><a href="{action_url}" style="display: inline-block; padding: 12px 32px; background-color: #2d3748; color: #ffffff; text-decoration: none; border-radius: 4px; font-weight: 600; font-size: 14px;">비밀번호 재설정</a></td></tr></table>'
.'<p>비밀번호 재설정을 요청하지 않으셨다면, 이 이메일을 무시해 주세요.</p>'
.'<p>감사합니다,<br><a href="{site_url}">{app_name}</a></p>',
'en' => '<h1>Hello, {name}.</h1>'
.'<p>We received a request to reset your password. Click the button below to set a new password.</p>'
.'<p>This link will expire in <strong>{expire_minutes} minutes</strong>.</p>'
.'<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="margin: 24px 0;"><tr><td align="center"><a href="{action_url}" style="display: inline-block; padding: 12px 32px; background-color: #2d3748; color: #ffffff; text-decoration: none; border-radius: 4px; font-weight: 600; font-size: 14px;">Reset Password</a></td></tr></table>'
.'<p>If you did not request a password reset, please ignore this email.</p>'
.'<p>Thank you,<br><a href="{site_url}">{app_name}</a></p>',
],
'variables' => [
['key' => 'name', 'description' => '수신자 이름'],
['key' => 'app_name', 'description' => '사이트명'],
['key' => 'action_url', 'description' => '비밀번호 재설정 URL'],
['key' => 'expire_minutes', 'description' => '링크 만료 시간(분)'],
['key' => 'site_url', 'description' => '사이트 URL'],
],
'reset_password' => [
'hook_prefix' => 'core.auth',
'hooks' => ['core.auth.after_reset_password_request'],
'channels' => ['mail'],
],
[
'type' => 'password_changed',
'subject' => [
'ko' => '[{app_name}] 비밀번호가 변경되었습니다',
'en' => '[{app_name}] Your Password Has Been Changed',
],
'body' => [
'ko' => '<h1>{name}님, 안녕하세요.</h1>'
.'<p>계정의 비밀번호가 성공적으로 변경되었습니다.</p>'
.'<p><strong>본인이 변경하지 않았다면, 즉시 고객 지원팀에 문의하시기 바랍니다.</strong></p>'
.'<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="margin: 24px 0;"><tr><td align="center"><a href="{action_url}" style="display: inline-block; padding: 12px 32px; background-color: #2d3748; color: #ffffff; text-decoration: none; border-radius: 4px; font-weight: 600; font-size: 14px;">로그인하기</a></td></tr></table>'
.'<p>감사합니다,<br><a href="{site_url}">{app_name}</a></p>',
'en' => '<h1>Hello, {name}.</h1>'
.'<p>Your account password has been successfully changed.</p>'
.'<p><strong>If you did not make this change, please contact our support team immediately.</strong></p>'
.'<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="margin: 24px 0;"><tr><td align="center"><a href="{action_url}" style="display: inline-block; padding: 12px 32px; background-color: #2d3748; color: #ffffff; text-decoration: none; border-radius: 4px; font-weight: 600; font-size: 14px;">Log In</a></td></tr></table>'
.'<p>Thank you,<br><a href="{site_url}">{app_name}</a></p>',
],
'variables' => [
['key' => 'name', 'description' => '수신자 이름'],
['key' => 'app_name', 'description' => '사이트명'],
['key' => 'action_url', 'description' => '로그인 페이지 URL'],
['key' => 'site_url', 'description' => '사이트 URL'],
],
'password_changed' => [
'hook_prefix' => 'core.auth',
'hooks' => ['core.auth.after_password_changed'],
'channels' => ['mail'],
],
],
];
+4
View File
@@ -29,6 +29,10 @@ return [
'config_key' => 'app.supported_locales',
'type' => 'array',
],
'localeNames' => [
'config_key' => 'app.locale_names',
'type' => 'array',
],
'releaseYear' => [
'config_key' => 'app.release_year',
'type' => 'string',
+65 -1
View File
@@ -9,20 +9,84 @@ return [
| IP 기반 지역 감지 기능의 활성화 여부를 설정합니다.
| 이 기능을 사용하려면 GeoLite2-City.mmdb 파일이 필요합니다.
|
| 런타임 값은 관리자 > 환경설정 > 고급 탭의 마스터 토글에서 제어됩니다.
| SettingsServiceProvider::applyGeoIpConfig()가 settings JSON 값을
| 이 config에 오버라이드합니다.
|
*/
'enabled' => env('GEOIP_ENABLED', false),
/*
|--------------------------------------------------------------------------
| MaxMind 라이선스 키
|--------------------------------------------------------------------------
|
| MaxMind 무료 계정에서 발급받는 라이선스 키입니다.
| 런타임 값은 환경설정 > 고급 탭에서 입력되며 sensitive 필드로 마스킹됩니다.
|
*/
'license_key' => env('GEOIP_LICENSE_KEY', ''),
/*
|--------------------------------------------------------------------------
| 자동 업데이트 활성화
|--------------------------------------------------------------------------
|
| 주기적으로 GeoLite2 DB를 재다운로드할지 여부입니다.
| 런타임 값은 환경설정 > 고급 탭에서 제어됩니다.
|
*/
'auto_update_enabled' => env('GEOIP_AUTO_UPDATE_ENABLED', true),
/*
|--------------------------------------------------------------------------
| 마지막 업데이트 시각
|--------------------------------------------------------------------------
|
| 마지막 성공적인 DB 다운로드 시각 (ISO8601 문자열).
| geoip:update 커맨드가 성공 시 settings에 기록합니다.
|
*/
'last_updated_at' => null,
/*
|--------------------------------------------------------------------------
| GeoLite2 데이터베이스 파일 경로
|--------------------------------------------------------------------------
|
| MaxMind GeoLite2-City.mmdb 파일의 저장 경로입니다.
| 이 파일은 MaxMind 계정에서 다운로드하거나 API를 통해 자동 업데이트할 수 있습니다.
|
*/
'database_path' => storage_path('app/geoip/GeoLite2-City.mmdb'),
/*
|--------------------------------------------------------------------------
| 다운로드 설정
|--------------------------------------------------------------------------
*/
'download' => [
'edition_id' => 'GeoLite2-City',
'base_url' => 'https://download.maxmind.com/app/geoip_download',
'timeout' => 120,
'retry_attempts' => 3,
'retry_delay_ms' => 10000,
'user_agent' => 'g7-core/1.0 (+https://gnuboard.com)',
],
/*
|--------------------------------------------------------------------------
| 스케줄 설정
|--------------------------------------------------------------------------
|
| frequency: weekly | daily
| MaxMind는 주 2회(화/금) DB를 갱신하므로 주 1회(수요일)로도 충분합니다.
|
*/
'schedule' => [
'frequency' => env('GEOIP_SCHEDULE_FREQUENCY', 'weekly'),
'time' => env('GEOIP_SCHEDULE_TIME', '03:00'),
],
/*
|--------------------------------------------------------------------------
| 캐시 설정
+47
View File
@@ -0,0 +1,47 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| 기본 채널 설정
|--------------------------------------------------------------------------
| 시스템에서 기본으로 사용 가능한 알림 채널 목록입니다.
| 플러그인에서 core.notification.filter_available_channels 훅으로 확장 가능합니다.
*/
'default_channels' => [
[
'id' => 'mail',
'name' => ['ko' => '메일', 'en' => 'Email'],
'icon' => 'fas fa-envelope',
'description' => ['ko' => '이메일로 알림 발송', 'en' => 'Send notification via email'],
'source' => 'core',
'source_label' => ['ko' => '코어 기본 채널', 'en' => 'Core default channel'],
],
[
'id' => 'database',
'name' => ['ko' => '사이트내 알림', 'en' => 'Site Notification'],
'icon' => 'fas fa-bell',
'description' => ['ko' => '사이트내 알림 센터에 표시', 'en' => 'Show in site notification center'],
'source' => 'core',
'source_label' => ['ko' => '코어 기본 채널', 'en' => 'Core default channel'],
],
],
/*
|--------------------------------------------------------------------------
| 사이트내 알림 설정
|--------------------------------------------------------------------------
*/
'database_channel' => [
// 미읽음 알림 최대 보관 일수 (0 = 무제한)
'unread_retention_days' => 90,
// 읽음 알림 최대 보관 일수 (0 = 무제한)
'read_retention_days' => 30,
// 사용자별 최대 알림 수 (0 = 무제한)
'max_per_user' => 500,
],
];
+63 -8
View File
@@ -2,7 +2,7 @@
"_meta": {
"version": "1.0.0",
"description": "그누보드7 환경설정 기본값 및 프론트엔드 스키마",
"categories": ["general", "security", "mail", "upload", "seo", "cache", "debug", "drivers", "core_update"]
"categories": ["general", "security", "mail", "upload", "seo", "cache", "debug", "drivers", "core_update", "geoip", "notifications"]
},
"defaults": {
"general": {
@@ -67,12 +67,19 @@
},
"cache": {
"enabled": true,
"default_ttl": 86400,
"layout_enabled": true,
"layout_ttl": 3600,
"seo_enabled": true,
"seo_ttl": 7200,
"seo_sitemap_ttl": 86400,
"stats_enabled": true,
"stats_ttl": 1800,
"seo_enabled": true,
"seo_ttl": 7200
"notification_ttl": 3600,
"extension_status_ttl": 86400,
"geoip_enabled": true,
"geoip_ttl": 86400,
"version_check_ttl": 3600
},
"debug": {
"mode": false,
@@ -83,6 +90,12 @@
"github_url": "",
"github_token": ""
},
"geoip": {
"feature_enabled": false,
"license_key": "",
"auto_update_enabled": true,
"last_updated_at": ""
},
"drivers": {
"storage_driver": "local",
"s3_bucket": "",
@@ -97,18 +110,30 @@
"redis_database": 0,
"memcached_host": "127.0.0.1",
"memcached_port": 11211,
"session_driver": "database",
"session_driver": "file",
"session_lifetime": 120,
"queue_driver": "database",
"queue_driver": "sync",
"log_driver": "daily",
"log_level": "error",
"log_days": 14,
"websocket_enabled": false,
"websocket_app_id": "",
"websocket_app_key": "",
"websocket_app_secret": "",
"websocket_host": "localhost",
"websocket_port": 8080,
"websocket_scheme": "https",
"websocket_verify_ssl": true,
"websocket_server_host": "127.0.0.1",
"websocket_server_port": 8080,
"websocket_server_scheme": "http",
"search_engine_driver": "mysql-fulltext"
},
"notifications": {
"channels": [
{ "id": "mail", "is_active": true, "sort_order": 1 },
{ "id": "database", "is_active": true, "sort_order": 2 }
]
}
},
"frontend_schema": {
@@ -172,12 +197,19 @@
"_comment": "cache와 debug를 합쳐서 advanced로 노출",
"fields": {
"enabled": { "type": "boolean", "sensitive": false, "frontend_key": "cache_enabled", "expose": false },
"default_ttl": { "type": "integer", "sensitive": false, "frontend_key": "cache_default_ttl", "expose": false },
"layout_enabled": { "type": "boolean", "sensitive": false, "frontend_key": "layout_cache_enabled", "expose": false },
"layout_ttl": { "type": "integer", "sensitive": false, "frontend_key": "layout_cache_ttl", "expose": false },
"seo_enabled": { "type": "boolean", "sensitive": false, "frontend_key": "seo_cache_enabled", "expose": false },
"seo_ttl": { "type": "integer", "sensitive": false, "frontend_key": "seo_cache_ttl", "expose": false },
"seo_sitemap_ttl": { "type": "integer", "sensitive": false, "frontend_key": "seo_sitemap_cache_ttl", "expose": false },
"stats_enabled": { "type": "boolean", "sensitive": false, "frontend_key": "stats_cache_enabled", "expose": false },
"stats_ttl": { "type": "integer", "sensitive": false, "frontend_key": "stats_cache_ttl", "expose": false },
"seo_enabled": { "type": "boolean", "sensitive": false, "frontend_key": "seo_cache_enabled", "expose": false },
"seo_ttl": { "type": "integer", "sensitive": false, "frontend_key": "seo_cache_ttl", "expose": false }
"notification_ttl": { "type": "integer", "sensitive": false, "frontend_key": "notification_cache_ttl", "expose": false },
"extension_status_ttl": { "type": "integer", "sensitive": false, "frontend_key": "extension_status_cache_ttl", "expose": false },
"geoip_enabled": { "type": "boolean", "sensitive": false, "frontend_key": "geoip_cache_enabled", "expose": false },
"geoip_ttl": { "type": "integer", "sensitive": false, "frontend_key": "geoip_cache_ttl", "expose": false },
"version_check_ttl": { "type": "integer", "sensitive": false, "frontend_key": "version_check_cache_ttl", "expose": false }
}
},
"debug": {
@@ -198,6 +230,17 @@
"github_token": { "type": "string", "sensitive": true, "frontend_key": "core_update_github_token" }
}
},
"geoip": {
"expose": true,
"merge_into": "advanced",
"_comment": "GeoIP 기능 설정은 advanced 카테고리에 병합",
"fields": {
"feature_enabled": { "type": "boolean", "sensitive": false, "frontend_key": "geoip_enabled" },
"license_key": { "type": "string", "sensitive": true, "frontend_key": "geoip_license_key" },
"auto_update_enabled": { "type": "boolean", "sensitive": false, "frontend_key": "geoip_auto_update_enabled" },
"last_updated_at": { "type": "string", "sensitive": false, "frontend_key": "geoip_last_updated_at" }
}
},
"drivers": {
"expose": false,
"_comment": "드라이버 설정 — 프론트엔드 미노출 (admin_settings에서 API 원본값 기반 비교로 변경)",
@@ -222,10 +265,22 @@
"log_level": { "type": "string", "sensitive": false },
"log_days": { "type": "integer", "sensitive": false },
"websocket_enabled": { "type": "boolean", "sensitive": false },
"websocket_app_id": { "type": "string", "sensitive": false },
"websocket_app_key": { "type": "string", "sensitive": false },
"websocket_app_secret": { "type": "string", "sensitive": true },
"websocket_host": { "type": "string", "sensitive": false },
"websocket_port": { "type": "integer", "sensitive": false },
"websocket_scheme": { "type": "string", "sensitive": false }
"websocket_scheme": { "type": "string", "sensitive": false },
"websocket_verify_ssl": { "type": "boolean", "sensitive": false },
"websocket_server_host": { "type": "string", "sensitive": false },
"websocket_server_port": { "type": "integer", "sensitive": false },
"websocket_server_scheme": { "type": "string", "sensitive": false }
}
},
"notifications": {
"expose": true,
"fields": {
"channels": { "type": "array", "sensitive": false }
}
}
}