✨ v1.1.0 update readme
This commit is contained in:
parent
69f3a882c0
commit
4890d7faff
74
README.md
74
README.md
@ -6,11 +6,11 @@
|
||||
|
||||
> 多服务器管理; 通过`websocker实时更新`服务器基本信息: **系统、公网IP、CPU、内存、硬盘、网卡**等
|
||||
|
||||

|
||||

|
||||
|
||||
> 基于浏览器解决`SSH跨端同步`问题——**Web SSH**
|
||||
|
||||

|
||||

|
||||
|
||||
## 安装指南
|
||||
|
||||
@ -26,10 +26,10 @@
|
||||
|
||||
#### Docker镜像
|
||||
|
||||
> 注意:网速统计功能可能受限,预计v2.0版本切换方案
|
||||
> 注意:网速统计功能可能受限,docker网络将使用host模式(与宿主机共享端口,占用: 8082、22022)
|
||||
|
||||
```shell
|
||||
docker run -d -p 8082:8082 -p 22022:22022 chaoszhu/easynode
|
||||
docker run -d --net=host chaoszhu/easynode
|
||||
```
|
||||
|
||||
访问:http://yourip:8082
|
||||
@ -43,7 +43,7 @@ docker run -d -p 8082:8082 -p 22022:22022 chaoszhu/easynode
|
||||
> centos: yum install curl wget git zip tar -y
|
||||
|
||||
```shell
|
||||
wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/chaos-zhu/easynode/master/easynode-server-install.sh | bash
|
||||
wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/chaos-zhu/easynode/v1.1/easynode-server-install.sh | bash
|
||||
```
|
||||
|
||||
访问:http://yourip:8082
|
||||
@ -76,19 +76,22 @@ wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubuserconte
|
||||
|
||||
- 占用端口:22022
|
||||
|
||||
#### X86架构
|
||||
#### X86架构()
|
||||
|
||||
```shell
|
||||
wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/chaos-zhu/easynode/master/easynode-client-install-x86.sh | bash
|
||||
wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/chaos-zhu/easynode/v1.1/easynode-client-install-x86.sh | bash
|
||||
```
|
||||
|
||||
#### ARM架构
|
||||
|
||||
```shell
|
||||
wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/chaos-zhu/easynode/master/easynode-client-install-arm.sh | bash
|
||||
wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/chaos-zhu/easynode/v1.1/easynode-client-install-arm.sh | bash
|
||||
```
|
||||
|
||||
> 卸载:无服务残留
|
||||
> 卸载
|
||||
|
||||
```shell
|
||||
wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/chaos-zhu/easynode/master/easynode-client-uninstall.sh | bash
|
||||
wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/chaos-zhu/easynode/v1.1/easynode-client-uninstall.sh | bash
|
||||
```
|
||||
|
||||
> 查看客户端状态:`systemctl status easynode-client`
|
||||
@ -99,39 +102,52 @@ wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubuserconte
|
||||
|
||||
---
|
||||
|
||||
## 升级指南
|
||||
|
||||
- **v1.0 to v1.1**
|
||||
|
||||
### 服务端
|
||||
|
||||
> v1.1对所有的敏感信息全部加密,所有的v1.0为加密的信息全部失效. 主要影响已存储的ssh密钥.
|
||||
>
|
||||
> **还原客户端列表:** 先备份`app\config\storage\host-list.json`, 使用一键脚本或者手动部署的同志安装好使用备份文件覆盖此文件即可。
|
||||
>
|
||||
> 使用docker镜像的v1.0一键脚本**未做**文件夹映射,有能力的自己从镜像里把备份抠出来再重新构建镜像.
|
||||
|
||||
### 客户端
|
||||
|
||||
> v1.1未对客户端包进行改动,客户端无需重复安装. 不会备份的在面板重新添加客户端机器即可.
|
||||
|
||||
## 安全与说明
|
||||
|
||||
> 本人非专业后端,此服务全凭兴趣开发. 由于知识受限,并不能保证没有漏洞的存在,生产服务器请慎重使用此服务.
|
||||
|
||||
> 所有服务器信息相关接口已做`jwt鉴权`
|
||||
> 所有服务器信息相关接口已做`jwt鉴权`, 安全信息均使用加密传输与储存!
|
||||
|
||||
> webssh功能需要的密钥信息全部保存在服务端服务器的`app\config\storage\ssh-record.json`中. 在保存ssh密钥信息到服务器时,v1.0版本未做加密,`如果使用此功能最好带上https`, 并且保管好你的服务端服务器密码.
|
||||
> webssh功能需要的密钥信息全部保存在服务端服务器的`app\config\storage\ssh-record.json`中. 在保存ssh密钥信息到服务器储存与传输过程皆已加密,`不放心最好套https使用`
|
||||
|
||||
## 技术架构
|
||||
<!-- ## 技术架构
|
||||
|
||||
> 待更新...
|
||||
> 待更新... -->
|
||||
|
||||
## v2.0功能方向
|
||||
|
||||
- http传输加密
|
||||
|
||||
- 终端快捷键
|
||||
<!-- ## 后续版本功能方向
|
||||
|
||||
- SFTP
|
||||
- 在线文件编辑
|
||||
- 终端常用指令
|
||||
- 面板UI优化(列表\卡片\自定义背景)
|
||||
- 登录IP白名单
|
||||
- 版本更新检测
|
||||
- 终端tab一键分屏
|
||||
- 登录有效期(目前默认1h)
|
||||
- 面板登录通知(tg or wx?)
|
||||
- 定时任务 -->
|
||||
|
||||
- 终端多tab支持
|
||||
|
||||
- 终端主题
|
||||
|
||||
- FTP文件系统
|
||||
|
||||
- 支持完整功能的docker镜像
|
||||
|
||||
## 感谢
|
||||
## 感谢Star~
|
||||
|
||||
[](https://github.com/chaos-zhu/easynode/stargazers)
|
||||
|
||||
[](https://starchart.cc/chaos-zhu/easynode)
|
||||
<!-- [](https://starchart.cc/chaos-zhu/easynode) -->
|
||||
|
||||
## License
|
||||
|
||||
|
@ -1,93 +0,0 @@
|
||||
// 规则参见:https://cn.eslint.org/docs/rules/
|
||||
module.exports = {
|
||||
root: true, // 当前配置文件不能往父级查找
|
||||
env: {
|
||||
node: true,
|
||||
es6: true
|
||||
},
|
||||
extends: [
|
||||
'eslint:recommended' // 应用Eslint全部默认规则
|
||||
],
|
||||
'parserOptions': {
|
||||
'ecmaVersion': 'latest',
|
||||
'sourceType': 'module' // 目标类型 Node项目得添加这个
|
||||
},
|
||||
// 自定义规则,可以覆盖 extends 的配置【安装Eslint插件可以静态检查本地文件是否符合以下规则】
|
||||
'ignorePatterns': ['*.html'],
|
||||
rules: {
|
||||
// 0: 关闭规则(允许) 1/2: 警告warning/错误error(不允许)
|
||||
'no-console': 'off',
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||
'template-curly-spacing': ['error', 'always'], // 模板字符串空格
|
||||
'default-case': 0,
|
||||
'object-curly-spacing': ['error', 'always'],
|
||||
'no-multi-spaces': ['error'],
|
||||
indent: ['error', 2, { 'SwitchCase': 1 }], // 缩进:2
|
||||
quotes: ['error', 'single'], // 引号:single单引 double双引
|
||||
semi: ['error', 'never'], // 结尾分号:never禁止 always必须
|
||||
'comma-dangle': ['error', 'never'], // 对象拖尾逗号
|
||||
'no-redeclare': ['error', { builtinGlobals: true }], // 禁止重复对象声明
|
||||
'no-multi-assign': 0,
|
||||
'no-restricted-globals': 0,
|
||||
'space-before-function-paren': 0, // 函数定义时括号前面空格
|
||||
'one-var': 0, // 允许连续声明
|
||||
// 'no-undef': 0, // 允许未定义的变量【会使env配置无效】
|
||||
'linebreak-style': 0, // 检测CRLF/LF检测【默认LF】
|
||||
'no-extra-boolean-cast': 0, // 允许意外的Boolean值转换
|
||||
'no-constant-condition': 0, // if语句中禁止常量表达式
|
||||
'no-prototype-builtins': 0, // 允许使用Object.prototypes内置对象(如:xxx.hasOwnProperty)
|
||||
'no-regex-spaces': 0, // 允许正则匹配多个空格
|
||||
'no-unexpected-multiline': 0, // 允许多行表达式
|
||||
'no-fallthrough': 0, // 允许switch穿透
|
||||
'no-delete-var': 0, // 允许 delete 删除对象属性
|
||||
'no-mixed-spaces-and-tabs': 0, // 允许空格tab混用
|
||||
'no-class-assign': 0, // 允许修改class类型
|
||||
'no-param-reassign': 0, // 允许对函数params赋值
|
||||
'max-len': 0, // 允许长行
|
||||
'func-names': 0, // 允许命名函数
|
||||
'import/no-unresolved': 0, // 不检测模块not fund
|
||||
'import/prefer-default-export': 0, // 允许单个导出
|
||||
'no-const-assign': 1, // 警告:修改const命名的变量
|
||||
'no-unused-vars': 1, // 警告:已声明未使用
|
||||
'no-unsafe-negation': 1, // 警告:使用 in / instanceof 关系运算符时,左边表达式请勿使用 ! 否定操作符
|
||||
'use-isnan': 1, // 警告:使用 isNaN() 检查 NaN
|
||||
'no-var': 2, // 禁止使用var声明
|
||||
'no-empty-pattern': 2, // 空解构赋值
|
||||
'eqeqeq': 2, // 必须使用 全等=== 或 非全等 !==
|
||||
'no-cond-assign': 2, // if语句中禁止赋值
|
||||
'no-dupe-args': 2, // 禁止function重复参数
|
||||
'no-dupe-keys': 2, // 禁止object重复key
|
||||
'no-duplicate-case': 2,
|
||||
'no-empty': 2, // 禁止空语句块
|
||||
'no-func-assign': 2, // 禁止重复声明函数
|
||||
'no-inner-declarations': 2, // 禁止在嵌套的语句块中出现变量或 function 声明
|
||||
'no-sparse-arrays': 2, // 禁止稀缺数组
|
||||
'no-unreachable': 2, // 禁止非条件return、throw、continue 和 break 语句后出现代码
|
||||
'no-unsafe-finally': 2, // 禁止finally出现控制流语句,如:return、throw等,因为这会导致try...catch捕获不到
|
||||
'valid-typeof': 2, // 强制 typeof 表达式与有效的字符串进行比较
|
||||
// auto format options
|
||||
'prefer-const': 0, // 禁用声明自动化
|
||||
'no-extra-parens': 0, // 允许函数周围出现不明括号
|
||||
'no-extra-semi': 2, // 禁止不必要的分号
|
||||
// curly: ['error', 'multi'], // if、else、for、while 语句单行代码时不使用大括号
|
||||
'dot-notation': 0, // 允许使用点号或方括号来访问对象属性
|
||||
'dot-location': ['error', 'property'], // 点操作符位置,要求跟随下一行
|
||||
'no-else-return': 2, // 禁止if中有return后又else
|
||||
'no-implicit-coercion': [2, { allow: ['!!', '~', '+'] }], // 禁止隐式转换,allow字段内符号允许
|
||||
'no-trailing-spaces': 1, //一行结束后面不要有空格
|
||||
'no-multiple-empty-lines': [1, { 'max': 1 }], // 空行最多不能超过1行
|
||||
'no-useless-return': 2,
|
||||
'wrap-iife': 0, // 允许自调用函数
|
||||
'yoda': 0, // 允许yoda语句
|
||||
'strict': 0, // 允许strict
|
||||
'no-undef-init': 0, // 允许将变量初始化为undefined
|
||||
'prefer-promise-reject-errors': 0, // 允许使用非 Error 对象作为 Promise 拒绝的原因
|
||||
'consistent-return': 0, // 允许函数不使用return
|
||||
'no-new': 0, // 允许单独new
|
||||
'no-restricted-syntax': 0, // 允许特定的语法
|
||||
'no-plusplus': 0,
|
||||
'import/extensions': 0, // 忽略扩展名
|
||||
'global-require': 0,
|
||||
'no-return-assign': 0
|
||||
}
|
||||
}
|
BIN
images/v1.1-panel.png
Normal file
BIN
images/v1.1-panel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 967 KiB |
BIN
images/v1.1-webssh.png
Normal file
BIN
images/v1.1-webssh.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 329 KiB |
Loading…
x
Reference in New Issue
Block a user