Nginx生产配置(笔记) 2020-10-23 Nginx Https 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 server { 阅读更多
Mac安装OpenResty Openssl依赖报错解决 2020-10-20 Nginx 今天想给我Mac装一个OpenResty环境,brew install openresty提示找不到Openssl库。 1 2 3 4 5 6 7 8 9 10 11 ➜ ~ brew install openresty ... checking for 阅读更多
Gin 中间件Next()方法作用解析 2020-10-16 Golang 背景 关于Gin中间件Context.Next()的用途我之前一直认为就是用在当前中间件的最后,用来把控制权还给Context让其它的中间件能 阅读更多
谈谈Nginx做反代时后端服务如何正确获取客户端IP? 2020-07-29 Nginx 背景 当我们的服务强依赖用户的IP时如何确保后端服务能拿到正确的用户IP就显得尤为重要,否则轻则造成部分功能失效重则会引发安全问题。如果服务是 阅读更多
Jira 8.5.5 安装 2020-06-30 其它 Jira安装和破解过程和Confluence安装差不多。 环境准备 1 2 3 [root@confluence ~]# cat /etc/redhat-release CentOS Linux release 7.8.2003 (Core) [root@confluence ~]# yum install -y java-1.8.0-openjdk unzip 准备数据库 Mysql 5.7安装和配置可以参考C 阅读更多
Confluence 7.4.1 安装 2020-06-29 其它 环境准备 1 2 3 [root@confluence ~]# cat /etc/redhat-release CentOS Linux release 7.8.2003 (Core) [root@confluence ~]# yum install -y java-1.8.0-openjdk unzip 安装Mysql confluence 需要依赖数据库,支持Mysql、PostgreSQL、Orace等各种数据库, 阅读更多
Nexus集成LDAP认证(笔记) 2020-06-23 LDAP 安装 下载安装包: https://www.sonatype.com/download-oss-sonatype 安装 1 2 3 4 yum install -y java-1.8.0-openjdk tar zxvf nexus-3.24.0-02-unix.tar.gz -C /opt/ ln -s /opt/nexus-3.24.0-02/ /opt/nexus /opt/nexus/bin/nexus start 初始密码: 1 cat /opt/sonatype-work/nexus3/admin.password 集成LDAP 参考 https://help.sonatype.com/iqserver/managing/user-management/ldap-integration 阅读更多
Gitlab集成LDAP认证(笔记) 2020-06-23 LDAP Gitlab安装 1 2 3 yum install -y curl policycoreutils-python openssh-server openssh-clients curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash sudo EXTERNAL_URL="https://gitlab.dianduidian.com" yum install -y gitlab-ce 集成LDAP认证 vim /etc/gitlab/gitlab.rb 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 gitlab_rails['ldap_enabled'] = truegitlab_rails['ldap_servers'] = YAML.load 阅读更多
Kubernetes Ingress 400 Bad Request 问题处理过程复盘 2020-06-21 kubernetes 复盘 突然接到同事反馈说是线上某些接口偶尔会报400 Bad Request错误,去现场复现了下问题,习惯性的打开开发者工具查找错误细节,发现Quer 阅读更多
都是Post提交,Form Data与Request Payload有啥区别 2020-05-26 Http 最近在学习Gin,今天在测试接受Post数据时,相当然的以为服务端使用PostForm就能接收数据,结果发现怎么也接收不到,看来还是太nai 阅读更多