Commit Graph

115 Commits

Author SHA1 Message Date
qinxiaohui 12ebdd184a give port 22 as example 2020-04-22 17:44:22 +08:00
Ulric Qin b88b9b670f add gzip for js and css 2020-03-31 07:07:32 +08:00
Ulric Qin bf2a4b9ef5 fix counter type compute func 2020-03-29 08:08:43 +08:00
wulorn 76fd7b38df 增加redis配置项,可通过配置文件配置指定的redis库 2020-03-25 16:36:27 +08:00
710leo fb43b03b2c refactor: change collect config path 2020-03-24 20:41:21 +08:00
Ulric Qin 50bb36f2ed 更改获取ip的方式 2020-03-24 10:32:53 +08:00
ulricqin e12877c3fb
Merge pull request #19 from higkoo/patch-3
更新IP的获取方式
2020-03-24 10:28:39 +08:00
ulricqin 9ba38546ac
Merge pull request #18 from higkoo/patch-2
更新IP地址的获取方式
2020-03-24 10:28:21 +08:00
higkoo 060c00fa25
更新IP的获取方式
原命令也是基于 路径正确、操作系统输出格式正确,还不如 hostname -i 来得简单。  
hostname -i 在正确配置的操作系统下,都能正常获取IP地址。  
简单高效,简单就是好。
2020-03-23 19:52:19 +08:00
higkoo 16871e724f
更新IP地址的获取方式
在不同操作系统下全路径不一样,比如上述的 ifconfig / route 在 Debian 系统的 /sbin 目录下。
另外 Debian 打印出来 多 'addr:' 需要多处理 /sbin/ifconfig `/sbin/route|grep '^default'|awk '{print $NF}'`|grep inet|awk '{print $2}'|awk -F':' '{print $2}'|head -n 1
还不如直接 hostname -i 获取,正常配置下都Okay的。
2020-03-23 19:49:27 +08:00
higkoo b71847feba
更新IP地址的获取方式
ifconfig 和 route 命令,写绝对路径会导致兼容性不好。
1. Debian系统路径对应: /sbin/ifconfig 和 /sbin/route
2. 原命令获取的IP地址兼容性不好,会带“addr:”在前面。 addr:192.163.10.31
3. 本地配置正确的情况下 `hostname -i`是能拿到正确IP的
2020-03-23 19:46:59 +08:00
Feng_Qi 7c86e8f58e ldap login support auto cover attributes
1. support cover attribute by ldap
2. add ldap auto regist config
2020-03-22 23:43:06 +08:00
Ulric Qin eb03ccc271 nginx user use root 2020-03-22 07:30:08 +08:00
Ulric Qin 7e400f0c29 del no use comment 2020-03-18 17:39:05 +08:00
710leo 5f00489392 init project 2020-03-11 18:25:20 +08:00