|
8 月之前 | |
---|---|---|
.drone.yml | 8 月之前 | |
Dockerfile | 9 月之前 | |
Dockerfile-v1 | 4 年之前 | |
Dockerfile-v1base | 5 年之前 | |
Dockerfile-v3base | 4 年之前 | |
README.md | 2 年之前 | |
cluster-default.xml | 5 年之前 | |
configmap.json | 5 年之前 | |
deploy-tmp-v2.yaml | 4 年之前 | |
deploy-tmp.yaml | 2 年之前 | |
entrypoint.sh | 2 年之前 | |
flume.conf | 9 月之前 | |
flume_start.sh | 5 年之前 | |
ingress.yaml | 2 年之前 | |
ppctl.py | 5 年之前 | |
release | 8 月之前 | |
resin.conf | 4 年之前 | |
resin.properties | 5 年之前 | |
supervisord.conf | 4 年之前 | |
tools.py | 4 年之前 |
小说触版resin服务基础镜像
1. flume1.7+resin4
2. 20200604:安装supervisord
3. 重置基础镜像,tag:v1base
4. 20201022:重置基础镜像,tag:v3base,修改flume配置
5. update
6. ci切换到drone2.ieasou.cn
7. 升级community-user包
8. 升级vip包
9. 第三方登录屏蔽
k8s ingress-nginx获取用户IP默认是通过$remote_addr参数,nginx.conf中配置如下:
proxy_set_header X-Forwarded-For $remote_addr;
但是,如果用户通过代理或使用waf转发请求的话,上面这种方式是无法拿到用户的真实IP。因此,就需要k8s中添加下面的配置获取真实IP。
1、在ConfigMaps的ngress-nginx-controller中添加下面的配置:
data:
compute-full-forwarded-for: 'true'
use-forwarded-headers: 'true'
2、在Ingresses找到对应项目的Ingress配置,添加如下内容:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
kubectl create secret tls appeasou-com --cert book.appeasou.com.pem --key book.appeasou.com.key -n pro
说明:
appeasou-com: secrets中自定义的证书name。
-n:指定命名空间。