chore: add Dockerfile and docker-compose.yml for NAS deployment

This commit is contained in:
jocayn
2026-06-13 15:56:22 +08:00
parent 8f28ae3c67
commit ec6b3cb93f
3 changed files with 44 additions and 2 deletions
+4 -2
View File
@@ -794,8 +794,10 @@ function startServer() {
server.listen(PORT, () => {
console.log(`CatMata Sub2Proxy 控制面板已启动!`);
console.log(`本地访问地址: http://localhost:${PORT}`);
console.log(`正在自动打开默认浏览器...`);
openBrowser(`http://localhost:${PORT}`);
if (process.env.HEADLESS !== 'true') {
console.log(`正在自动打开默认浏览器...`);
openBrowser(`http://localhost:${PORT}`);
}
});
}