Skip to content

Commit 872b93b

Browse files
committed
Bump ObjectStack deps and document env var aliases
1 parent c56b7f6 commit 872b93b

4 files changed

Lines changed: 356 additions & 319 deletions

File tree

‎apps/objectos/package.json‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
"type-check": "tsc --noEmit"
1414
},
1515
"dependencies": {
16-
"@objectstack/cli": "^7.2.0",
17-
"@objectstack/core": "^7.2.0",
18-
"@objectstack/driver-memory": "^7.2.0",
19-
"@objectstack/driver-sql": "^7.2.0",
20-
"@objectstack/metadata": "^7.2.0",
21-
"@objectstack/objectql": "^7.2.0",
22-
"@objectstack/runtime": "^7.2.0",
23-
"@objectstack/spec": "^7.2.0"
16+
"@objectstack/cli": "^7.2.1",
17+
"@objectstack/core": "^7.2.1",
18+
"@objectstack/driver-memory": "^7.2.1",
19+
"@objectstack/driver-sql": "^7.2.1",
20+
"@objectstack/metadata": "^7.2.1",
21+
"@objectstack/objectql": "^7.2.1",
22+
"@objectstack/runtime": "^7.2.1",
23+
"@objectstack/spec": "^7.2.1"
2424
},
2525
"devDependencies": {
2626
"@types/node": "^25.9.1",

‎content/docs/reference/environment-variables.cn.mdx‎

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ description: ObjectOS 运行时环境变量参考。
88
使用环境变量进行部署级配置和密钥管理。
99
使用系统设置进行租户/用户可编辑的应用配置。
1010

11+
> **命名。** 自下一版本起,所有 ObjectStack 自有变量统一使用 `OS_` 前缀。1.0 之前的无前缀名称(`PORT`、`AUTH_SECRET`、`OS_MULTI_TENANT` 等)仍可使用,但会触发一次性弃用警告。新部署请优先使用规范的 `OS_*` 名称,参见[旧别名](#legacy-aliases)。
12+
1113
## 核心
1214

1315
| 变量 | 是否必需 | 说明 |
1416
|---|---:|---|
15-
| `PORT` | 否 | 容器内的 HTTP 端口。Docker Compose 中默认 `3000`。 |
16-
| `OS_AUTH_SECRET` | 启用 auth 时必需 | 用于派生各项目 auth 密钥的基础密钥。 |
17+
| `OS_PORT` | 否 | 运行时监听的 HTTP 端口。默认 `3000`。旧别名:`PORT`。 |
18+
| `OS_AUTH_SECRET` | 启用 auth 时必需 | 用于派生各项目 auth 密钥的基础密钥。旧别名:`AUTH_SECRET`。 |
1719

1820
## Artifact 与项目解析
1921

@@ -27,7 +29,7 @@ description: ObjectOS 运行时环境变量参考。
2729
| `OS_WATCH_ARTIFACT` | 否 | 设为 `1` 时在本地 artifact 变更时重载。仅用于开发。 |
2830
| `OS_CLOUD_URL` | Cloud 模式 | 用于主机名解析和 artifact 拉取的控制平面基础 URL。设为 `off` 或 `local` 退出云端联动行为。 |
2931
| `OS_CLOUD_API_KEY` | 可选 | 用于私有控制平面 Artifact API 访问的 Bearer token。 |
30-
| `OS_MULTI_TENANT` | 否 | 设为 `false` 以禁用多租户路由(默认 `true`)。 |
32+
| `OS_MULTI_ORG_ENABLED` | 否 | 设为 `true` 以启用多租户路由/组织切换(默认 `false`)。旧别名:`OS_MULTI_TENANT`。 |
3133
| `OS_RUNTIME_PORT` | 仅开发 | 当在 `http://localhost:<port>` 开发时,用于构建平台 SSO 回调 URL 的本地端口。 |
3234

3335
## 缓存
@@ -43,7 +45,7 @@ description: ObjectOS 运行时环境变量参考。
4345

4446
| 变量 | 说明 |
4547
|---|---|
46-
| `AUTH_SECRET` | 框架包使用的回退 auth 密钥名。ObjectOS 优先使用 `OS_AUTH_SECRET`。 |
48+
| `AUTH_SECRET` | `OS_AUTH_SECRET` 的旧别名。本版本仍可使用;请优先使用 `OS_AUTH_SECRET`。 |
4749
| `OS_TRUSTED_ORIGINS` | 逗号分隔的额外可信来源。 |
4850
| `OS_ROOT_DOMAIN` | 平台 SSO 部署中信任项目子域的根域。 |
4951
| `OS_PLATFORM_SSO` | 设为 `false` 以禁用平台 SSO 装配。 |
@@ -63,3 +65,14 @@ description: ObjectOS 运行时环境变量参考。
6365
| `OS_SKIP_SCHEMA_SYNC` | 设为 `1` 时在启动时跳过 ObjectQL DDL 同步。schema 由外部管理时使用。 |
6466

6567
对 ObjectOS 客户部署,优先使用显式控制平面运行时配置或 artifact 数据源配置,而非依赖容器本地默认值。
68+
69+
## 旧别名 [#legacy-aliases]
70+
71+
以下 1.0 之前的名称在本版本仍可使用,但会触发一次性弃用警告,并将在未来的主版本中移除。请优先使用规范名称。
72+
73+
| 规范名称 | 旧别名 |
74+
|---|---|
75+
| `OS_PORT` | `PORT` |
76+
| `OS_AUTH_SECRET` | `AUTH_SECRET` |
77+
| `OS_MULTI_ORG_ENABLED` | `OS_MULTI_TENANT` |
78+
| `OS_ENVIRONMENT_ID` | `OS_PROJECT_ID` |

‎content/docs/reference/environment-variables.mdx‎

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,17 @@ description: ObjectOS runtime environment variable reference.
88
Use environment variables for deployment-level configuration and secrets.
99
Use system settings for tenant/user-editable application configuration.
1010

11+
> **Naming.** As of the next release, all ObjectStack-owned variables use the
12+
> `OS_` prefix. Pre-1.0 unprefixed names (`PORT`, `AUTH_SECRET`, `OS_MULTI_TENANT`,
13+
> …) still work but emit a one-shot deprecation warning. Prefer the canonical
14+
> `OS_*` names in new deployments; see [Legacy aliases](#legacy-aliases).
15+
1116
## Core
1217

1318
| Variable | Required | Description |
1419
|---|---:|---|
15-
| `PORT` | No | HTTP port inside the container. Defaults to `3000` in Docker Compose. |
16-
| `OS_AUTH_SECRET` | Yes for auth | Base secret used to derive per-project auth secrets. |
20+
| `OS_PORT` | No | HTTP port the runtime listens on. Defaults to `3000`. Legacy alias: `PORT`. |
21+
| `OS_AUTH_SECRET` | Yes for auth | Base secret used to derive per-project auth secrets. Legacy alias: `AUTH_SECRET`. |
1722

1823
## Artifact and project resolution
1924

@@ -27,7 +32,7 @@ Use system settings for tenant/user-editable application configuration.
2732
| `OS_WATCH_ARTIFACT` | No | Set to `1` to reload the local artifact when it changes. Use only in development. |
2833
| `OS_CLOUD_URL` | Cloud mode | Control-plane base URL for hostname resolution and artifact fetch. Set to `off` or `local` to opt out of cloud-connected behaviour. |
2934
| `OS_CLOUD_API_KEY` | Optional | Bearer token for private control-plane Artifact API access. |
30-
| `OS_MULTI_TENANT` | No | Set to `false` to disable multi-tenant routing (default `true`). |
35+
| `OS_MULTI_ORG_ENABLED` | No | Set to `true` to enable multi-tenant routing / organization switching (default `false`). Legacy alias: `OS_MULTI_TENANT`. |
3136
| `OS_RUNTIME_PORT` | Dev only | Localhost port used to build platform-SSO callback URLs when developing on `http://localhost:<port>`. |
3237

3338
## Cache
@@ -43,7 +48,7 @@ Use system settings for tenant/user-editable application configuration.
4348

4449
| Variable | Description |
4550
|---|---|
46-
| `AUTH_SECRET` | Fallback auth secret name used by framework packages. Prefer `OS_AUTH_SECRET` for ObjectOS. |
51+
| `AUTH_SECRET` | Legacy alias for `OS_AUTH_SECRET`. Still honoured this release; prefer `OS_AUTH_SECRET`. |
4752
| `OS_TRUSTED_ORIGINS` | Comma-separated additional trusted origins. |
4853
| `OS_ROOT_DOMAIN` | Root domain used to trust project subdomains in platform SSO deployments. |
4954
| `OS_PLATFORM_SSO` | Set to `false` to disable platform SSO wiring. |
@@ -68,3 +73,15 @@ artifact. As a last resort the framework also honours:
6873
For ObjectOS customer deployments, prefer explicit control-plane runtime
6974
configuration or artifact datasource configuration over relying on
7075
container-local defaults.
76+
77+
## Legacy aliases
78+
79+
These pre-1.0 names still work this release but emit a one-shot deprecation
80+
warning. They will be removed in a future major. Prefer the canonical name.
81+
82+
| Canonical | Legacy |
83+
|---|---|
84+
| `OS_PORT` | `PORT` |
85+
| `OS_AUTH_SECRET` | `AUTH_SECRET` |
86+
| `OS_MULTI_ORG_ENABLED` | `OS_MULTI_TENANT` |
87+
| `OS_ENVIRONMENT_ID` | `OS_PROJECT_ID` |

0 commit comments

Comments
 (0)