Change config: open auth by default

pull/107/head
QLeelulu 2018-09-21 09:39:40 +08:00
parent a4e1a0cdec
commit 8fbb71c555
3 changed files with 3 additions and 1 deletions

View File

@ -84,6 +84,7 @@ sh build.sh
3. Open and update Etcd(`conf/etcd.json`) and MongoDB(`conf/db.json`) configurations 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` 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 5. Open `http://127.0.0.1:7079` in browser
6. Login with username `admin@admin.com` and password `admin`
## Screenshot ## Screenshot

View File

@ -72,6 +72,7 @@ sh build.sh
3. 修改 `conf` 相关的配置 3. 修改 `conf` 相关的配置
4. 在任务结点启动 `./cronnode -conf conf/base.json`,在管理结点启动 `./cronweb -conf conf/base.json` 4. 在任务结点启动 `./cronnode -conf conf/base.json`,在管理结点启动 `./cronweb -conf conf/base.json`
5. 访问管理界面 `http://127.0.0.1:7079/ui/` 5. 访问管理界面 `http://127.0.0.1:7079/ui/`
6. 使用用户名 `admin@admin.com` 和密码 `admin` 进行登录
### 关于后台权限 ### 关于后台权限

View File

@ -2,7 +2,7 @@
"BindAddr": ":7079", "BindAddr": ":7079",
"Auth": { "Auth": {
"#Enabled": "set to true to open auth. default username and password is admin@admin.com/admin", "#Enabled": "set to true to open auth. default username and password is admin@admin.com/admin",
"Enabled": false "Enabled": true
}, },
"Session": { "Session": {
"StorePrefixPath": "/cronsun/sess/", "StorePrefixPath": "/cronsun/sess/",