From 8fbb71c5552e508a7f54a7c37d377df8025dc032 Mon Sep 17 00:00:00 2001 From: QLeelulu Date: Fri, 21 Sep 2018 09:39:40 +0800 Subject: [PATCH] Change config: open auth by default --- README.md | 1 + README_ZH.md | 1 + conf/files/web.json.sample | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 25e7d9b..a940d95 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,7 @@ sh build.sh 3. Open and update Etcd(`conf/etcd.json`) and MongoDB(`conf/db.json`) configurations 4. Start cronnode: `./cronnode -conf conf/base.json`, start cronweb: `./cronweb -conf conf/base.json` 5. Open `http://127.0.0.1:7079` in browser +6. Login with username `admin@admin.com` and password `admin` ## Screenshot diff --git a/README_ZH.md b/README_ZH.md index e4b0130..709d2a0 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -72,6 +72,7 @@ sh build.sh 3. 修改 `conf` 相关的配置 4. 在任务结点启动 `./cronnode -conf conf/base.json`,在管理结点启动 `./cronweb -conf conf/base.json` 5. 访问管理界面 `http://127.0.0.1:7079/ui/` +6. 使用用户名 `admin@admin.com` 和密码 `admin` 进行登录 ### 关于后台权限 diff --git a/conf/files/web.json.sample b/conf/files/web.json.sample index d378ab4..7360f9c 100644 --- a/conf/files/web.json.sample +++ b/conf/files/web.json.sample @@ -2,7 +2,7 @@ "BindAddr": ":7079", "Auth": { "#Enabled": "set to true to open auth. default username and password is admin@admin.com/admin", - "Enabled": false + "Enabled": true }, "Session": { "StorePrefixPath": "/cronsun/sess/",