You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`NUXT_PUBLIC_API_URL`|`https://kms.ikxin.com`| API URL for the static version |
78
+
|`NUXT_MONITOR_LIST`|`kms.org.cn,win.freekms.cn`| Custom KMS server monitoring list, separated by `,`|
79
+
|`NUXT_MONITOR_INTERVAL`|`10`| Monitoring interval in seconds, default is 10 |
80
+
|`NUXT_ENABLE_VLMCSD`|`false`| Whether to enable the built-in VLMCSD service |
81
+
|`PORT`|`3000`| Server listening port (also accepts `NITRO_PORT`) |
82
+
83
+
> [!NOTE]
84
+
> The production server (`node .output/server/index.mjs`) does **not** automatically load `.env` files. Environment variables must be set in the system environment or your deployment platform before starting the server. The `.env` file is only used during development and the build phase.
81
85
82
86
### Full-Stack Version
83
87
@@ -96,7 +100,7 @@ services:
96
100
volumes:
97
101
- kms-data:/app/.data
98
102
environment:
99
-
- MONITOR_LIST=kms.org.cn,win.freekms.cn
103
+
- NUXT_MONITOR_LIST=kms.org.cn,win.freekms.cn
100
104
restart: unless-stopped
101
105
102
106
volumes:
@@ -139,12 +143,18 @@ cd kms-tools && pnpm install
139
143
pnpm run build
140
144
```
141
145
142
-
3. Start the service (default port: `3000`)
146
+
3. Start the service (default port: `3000`), configurable via the `PORT` environment variable
143
147
144
148
```bash
145
149
node .output/server/index.mjs
146
150
```
147
151
152
+
To set a custom port and monitor list, pass environment variables at startup:
0 commit comments