## @strpc 기존 RPC를 package화 ### @strpc/express express의 middleware + router 결함 ## @sammo 게임 전체 - server, client - gateway_server, gateway_client
32 lines
925 B
TypeScript
32 lines
925 B
TypeScript
declare namespace NodeJS {
|
|
interface ProcessEnv {
|
|
NODE_ENV: 'development' | 'production';
|
|
|
|
//Docker 환경이라면 GAME_DB 또는 GATEWAY_DB 둘중에 하나만 설정되어 있을 것이다.
|
|
GAME_DB_HOST?: string;
|
|
GAME_DB_DATABASE?: string;
|
|
GAME_DB_PORT?: string;
|
|
GAME_DB_USER?: string;
|
|
GAME_DB_PASSWORD?: string;
|
|
|
|
GATEWAY_DB_HOST?: string;
|
|
GATEWAY_DB_DATABASE?: string;
|
|
GATEWAY_DB_PORT?: string;
|
|
GATEWAY_DB_USER?: string;
|
|
GATEWAY_DB_PASSWORD?: string;
|
|
|
|
//Gateway RPC용
|
|
GATEWAY_HOST?: string;
|
|
GATEWAY_PORT?: string;
|
|
//gateway.ts용
|
|
GATEWAY_SESSION_SECRET?: string;
|
|
|
|
SERVER_PORT?: string; //숫자
|
|
SESSION_SECRET?: string; //길게
|
|
|
|
API_ROOT_PATH?: string;
|
|
VITE_API_ROOT_PATH?: string;
|
|
|
|
PRESHARED_SECURE_TOKEN_SECRET?: string; //길게
|
|
}
|
|
} |