@gaonjs/config 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types.d.ts +7 -0
- package/dist/wire.js +2 -0
- package/package.json +4 -4
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ConnectionConfig } from '@gaonjs/data';
|
|
2
|
+
import type { SecurityOptions } from '@gaonjs/web';
|
|
2
3
|
import type { AuthOptions, JwtAuthOptions } from '@gaonjs/web';
|
|
3
4
|
/**
|
|
4
5
|
* DB 커넥션 맵 — 키는 커넥션 이름(§4.5), 값은 어댑터 설정. `main` 은 관례
|
|
@@ -74,6 +75,12 @@ export interface WebConfig {
|
|
|
74
75
|
readonly cookieSecret?: string;
|
|
75
76
|
/** Inertia 에셋 버전. 생략 시 이 프로세스의 시작 시각(개발 편의). */
|
|
76
77
|
readonly assetsVersion?: string;
|
|
78
|
+
/**
|
|
79
|
+
* 보안 기본값 조정(CORS·rate limit·보안 헤더). 생략 시 코어 기본값(전부 켬 ·
|
|
80
|
+
* CLAUDE.md 규칙 8). `{ rateLimit: false }` 처럼 개별 항목을 끌 수 있다 — 끄는
|
|
81
|
+
* 것은 반드시 명시적으로. 예: 프록시/로드밸런서 뒤에서 rate limit 을 재조정.
|
|
82
|
+
*/
|
|
83
|
+
readonly security?: SecurityOptions;
|
|
77
84
|
}
|
|
78
85
|
/** 루트 설정 — gaon.config.ts 의 defineConfig 인자. */
|
|
79
86
|
export interface GaonConfig {
|
package/dist/wire.js
CHANGED
|
@@ -138,6 +138,8 @@ export async function wireGaon(config, cwd = process.cwd()) {
|
|
|
138
138
|
apps: specs,
|
|
139
139
|
version: config.web?.assetsVersion,
|
|
140
140
|
cookieSecret: config.web?.cookieSecret,
|
|
141
|
+
// 보안 기본값 조정(생략 시 코어 기본값 전부 켬 · CLAUDE.md 규칙 8).
|
|
142
|
+
security: config.web?.security,
|
|
141
143
|
realtime: nats ? { nats, hubAddr: config.hub?.addr, heartbeatMs: config.hub?.heartbeatMs } : undefined,
|
|
142
144
|
};
|
|
143
145
|
const app = await createApp(opts);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gaonjs/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Gaon 루트 설정 로더·자동 배선 (gaon.config.ts · §3.3 · M9-A)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"@gaonjs/async": "0.6.1",
|
|
29
29
|
"@gaonjs/mail": "0.1.3",
|
|
30
30
|
"@gaonjs/core": "0.2.1",
|
|
31
|
-
"@gaonjs/data": "0.
|
|
32
|
-
"@gaonjs/storage": "0.1.2",
|
|
31
|
+
"@gaonjs/data": "0.12.0",
|
|
33
32
|
"@gaonjs/i18n": "0.1.2",
|
|
34
|
-
"@gaonjs/
|
|
33
|
+
"@gaonjs/storage": "0.1.2",
|
|
34
|
+
"@gaonjs/web": "0.9.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"fastify": "^5.0.0"
|