feat: 完成 ApiState Temporal native 开发链
This commit is contained in:
+11
-8
@@ -87,6 +87,7 @@ temporal:
|
||||
runtime:
|
||||
secretsRoot: /root/.unidesk/.state/secrets
|
||||
secretSourcePaths:
|
||||
/root/.unidesk/.env/unified-admin-password.txt: /root/.unidesk/.env/unified-admin-password.txt
|
||||
platform-infra/sub2api.env: /root/.unidesk/.state/secrets/platform-infra/sub2api.env
|
||||
platform-infra/apistate.env: /root/.unidesk/.state/secrets/platform-infra/apistate.env
|
||||
defaultCliTarget: local
|
||||
@@ -96,6 +97,7 @@ runtime:
|
||||
mode: embedded
|
||||
databasePath: .state/sub2rank.sqlite
|
||||
scoreCachePath: .state/account-scores.json
|
||||
monitorWorkDir: /root/unidesk
|
||||
production:
|
||||
mode: http
|
||||
baseUrl: https://apistate.hwpod.com
|
||||
@@ -112,8 +114,8 @@ runtime:
|
||||
stateDir: .state/native
|
||||
env:
|
||||
APISTATE_WEB_PASSWORD:
|
||||
sourceRef: platform-infra/apistate.env
|
||||
sourceKey: APISTATE_WEB_PASSWORD
|
||||
sourceRef: /root/.unidesk/.env/unified-admin-password.txt
|
||||
sourceKey: contents
|
||||
APISTATE_API_KEY:
|
||||
sourceRef: platform-infra/apistate.env
|
||||
sourceKey: APISTATE_API_KEY
|
||||
@@ -150,13 +152,10 @@ runtime:
|
||||
logFile: worker.log
|
||||
web:
|
||||
command:
|
||||
- bun
|
||||
- --hot
|
||||
- src/dev-web.ts
|
||||
- bunx
|
||||
- vite
|
||||
- --config
|
||||
- config/sub2rank.yaml
|
||||
- --runtime
|
||||
- native
|
||||
- vite.config.ts
|
||||
pidFile: web.pid
|
||||
logFile: web.log
|
||||
serverTargets:
|
||||
@@ -168,8 +167,10 @@ runtime:
|
||||
webListenHost: 127.0.0.1
|
||||
webListenPort: 5173
|
||||
webApiBaseUrl: http://127.0.0.1:8080
|
||||
secureCookies: false
|
||||
databasePath: .state/sub2rank.sqlite
|
||||
scoreCachePath: .state/account-scores.json
|
||||
monitorWorkDir: /root/unidesk
|
||||
adminTokenEnv: APISTATE_API_KEY
|
||||
sub2apiAdminEmailEnv: SUB2API_ADMIN_EMAIL
|
||||
sub2apiAdminPasswordEnv: SUB2API_ADMIN_PASSWORD
|
||||
@@ -184,8 +185,10 @@ runtime:
|
||||
webListenHost: 127.0.0.1
|
||||
webListenPort: 5173
|
||||
webApiBaseUrl: http://127.0.0.1:8080
|
||||
secureCookies: true
|
||||
databasePath: /var/lib/sub2rank/sub2rank.sqlite
|
||||
scoreCachePath: /var/lib/sub2rank/account-scores.json
|
||||
monitorWorkDir: /opt/unidesk
|
||||
adminTokenEnv: APISTATE_API_KEY
|
||||
sub2apiAdminEmailEnv: SUB2API_ADMIN_EMAIL
|
||||
sub2apiAdminPasswordEnv: SUB2API_ADMIN_PASSWORD
|
||||
|
||||
Reference in New Issue
Block a user