暂无描述

stone 2d1b963fc6 Update 'release' 8 月之前
.drone.yml 6c032c1c08 [ci skip] 8 月之前
Dockerfile d5a9bf80c5 [CI SKIP] 9 月之前
Dockerfile-v1 8cb3e93bd6 [CI SKIP] 4 年之前
Dockerfile-v1base 78ee4b42b9 更新 'Dockerfile-v1base' 5 年之前
Dockerfile-v3base b8de834709 [CI SKIP] 4 年之前
README.md f45c350c5d [CI SKIP] 2 年之前
cluster-default.xml 4b446a935a 更新 'cluster-default.xml' 5 年之前
configmap.json 20c53456ce update config 5 年之前
deploy-tmp-v2.yaml f20ab93844 [CI SKIP] 4 年之前
deploy-tmp.yaml 3163039184 [CI SKIP] 2 年之前
entrypoint.sh 8b8f428ce6 [CI SKIP] 2 年之前
flume.conf 8cbe847e64 更新 'flume.conf' 9 月之前
flume_start.sh 4cd82bc7cc 更新 'flume_start.sh' 5 年之前
ingress.yaml 570e04fa02 [CI SKIP] 2 年之前
ppctl.py 607ae4f95f 更新 'ppctl.py' 5 年之前
release 2d1b963fc6 Update 'release' 8 月之前
resin.conf 7217e5669a [CI SKIP] 4 年之前
resin.properties a86fa01e39 添加 'resin.properties' 5 年之前
supervisord.conf e30bf9e179 [CI SKIP] 4 年之前
tools.py 044f095551 [CI SKIP] 4 年之前

README.md

book-touchrs-base

小说触版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. 第三方登录屏蔽

ngress-nginx获取用户真实IP

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;

k8s中添加ssl证书

kubectl create secret tls appeasou-com --cert book.appeasou.com.pem --key book.appeasou.com.key -n pro
说明:
   appeasou-com: secrets中自定义的证书name。
   -n:指定命名空间。