添加otp说明文字

This commit is contained in:
bjdgyc 2024-02-23 16:07:41 +08:00
parent a59e480b61
commit a650db816c
8 changed files with 9 additions and 9 deletions

View File

@ -75,7 +75,7 @@ jobs:
build-args: |
appVer=${{ env.APP_VER }}
commitId=${{ env.commitId }}
tags: bjdgyc/anylink:latest,bjdgyc/anylink:${{ env.APP_VER }}
tags: bjdgyc/anylink:${{ env.APP_VER }},bjdgyc/anylink:latest
#tags: bjdgyc/anylink:${{ env.APP_VER }}
- name: Build deploy binary

View File

@ -62,7 +62,7 @@ AnyLink 服务端仅在 CentOS 7、CentOS 8、Ubuntu 18.04、Ubuntu 20.04 测试
>
> 其他问题 [前往查看](doc/question.md)
>
> 默认管理后台访问地址 https://host:8800 默认账号密码 admin 123456
> 默认管理后台访问地址 https://host:8800 或 https://域名:8800 默认账号密码 admin 123456
>
> 首次使用,请在浏览器访问 https://域名:443 浏览器提示安全后,在客户端输入 【域名:443】 即可
@ -87,7 +87,6 @@ cd anylink-deploy
sudo ./anylink
# 默认管理后台访问地址
# 注意该host为anylink的内网ip,不能跟客户端请求的ip一样
# https://host:8800
# 默认账号 密码
# admin 123456

View File

@ -58,7 +58,7 @@ var configs = []config{
{Typ: cfgInt, Name: "mobile_keepalive", Usage: "移动端keepalive接检测时间(秒)", ValInt: 10},
{Typ: cfgInt, Name: "mobile_dpd", Usage: "移动端死链接检测时间(秒)", ValInt: 22},
{Typ: cfgInt, Name: "mtu", Usage: "最大传输单元MTU", ValInt: 1460},
{Typ: cfgInt, Name: "idle_timeout", Usage: "空闲链接超时时间(秒)-超时后断开链接0关闭此功能", ValInt: 7200},
{Typ: cfgInt, Name: "idle_timeout", Usage: "空闲链接超时时间(秒)-超时后断开链接0关闭此功能", ValInt: 1800},
{Typ: cfgInt, Name: "session_timeout", Usage: "session过期时间(秒)-用于断线重连0永不过期", ValInt: 3600},
// {Typ: cfgInt, Name: "auth_timeout", Usage: "auth_timeout", ValInt: 0},
{Typ: cfgInt, Name: "audit_interval", Usage: "审计去重间隔(秒),-1关闭", ValInt: 600},

View File

@ -74,7 +74,7 @@ default_domain = "example.com"
#default_domain = "example.com abc.example.com"
#空闲链接超时时间(秒)-超时后断开链接0关闭此功能
idle_timeout = 7200
idle_timeout = 1800
#session过期时间用于断线重连0永不过期
session_timeout = 3600
auth_timeout = 0

View File

@ -179,7 +179,7 @@ const accountMail = `<p>您好:</p>
<ul>
<li>请使用OTP软件扫描动态码二维码</li>
<li>然后使用anyconnect客户端进行登陆</li>
<li>登陆密码为 PIN码+动态码</li>
<li>登陆密码为 PIN码+动态码(中间没有+)</li>
</ul>
</div>
<p>

View File

@ -192,7 +192,7 @@ func LinkTunnel(w http.ResponseWriter, r *http.Request) {
hClone := w.Header().Clone()
buf := &bytes.Buffer{}
_ = hClone.Write(buf)
base.Trace("LinkTunnel Response Header:", buf.String())
base.Debug("LinkTunnel Response Header:", buf.String())
hj := w.(http.Hijacker)
conn, bufRW, err := hj.Hijack()

View File

@ -119,7 +119,7 @@ func notFound(w http.ResponseWriter, r *http.Request) {
// fmt.Println(r.RemoteAddr)
if base.GetLogLevel() == base.LogLevelTrace {
hd, _ := httputil.DumpRequest(r, true)
base.Trace("NotFound: ", string(hd))
base.Trace("NotFound: ", r.RemoteAddr, string(hd))
}
w.WriteHeader(http.StatusNotFound)

View File

@ -217,7 +217,8 @@
<el-form-item label="禁用OTP" prop="disable_otp">
<el-switch
v-model="ruleForm.disable_otp">
v-model="ruleForm.disable_otp"
active-text="开启OTP后用户密码为【PIN码+OTP动态码】(中间没有+号)">
</el-switch>
</el-form-item>