feat(nginx): 增加验证码相关设置
这个提交包含在:
@@ -0,0 +1,24 @@
|
|||||||
|
apiVersion: helm.cattle.io/v1
|
||||||
|
kind: HelmChart
|
||||||
|
metadata:
|
||||||
|
name: fillcode
|
||||||
|
namespace: apps
|
||||||
|
spec:
|
||||||
|
repo: https://cowboysysop.github.io/charts/
|
||||||
|
chart: whoami
|
||||||
|
targetNamespace: apps
|
||||||
|
version: 5.1.2
|
||||||
|
valuesContent: |-
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
ingressClassName: nginx
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- fillcode.com
|
||||||
|
secretName: fillcode-com-crt
|
||||||
|
hosts:
|
||||||
|
- host: fillcode.com
|
||||||
|
paths:
|
||||||
|
- /whoami
|
||||||
|
|
||||||
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: fillcode
|
|
||||||
namespace: apps
|
|
||||||
spec:
|
|
||||||
ingressClassName: nginx
|
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- fillcode.com
|
|
||||||
secretName: fillcode-com-crt
|
|
||||||
rules:
|
|
||||||
- host: fillcode.com
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: fillcode
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
@@ -115,6 +115,14 @@ spec:
|
|||||||
value: "rgILO2mh/t+30LMvzyyMXbfHRmDfBkDDkhEflzHaoQ0"
|
value: "rgILO2mh/t+30LMvzyyMXbfHRmDfBkDDkhEflzHaoQ0"
|
||||||
- name: BOUNCER_CONFIG
|
- name: BOUNCER_CONFIG
|
||||||
value: "/crowdsec/crowdsec-bouncer.conf"
|
value: "/crowdsec/crowdsec-bouncer.conf"
|
||||||
|
- name: CAPTCHA_PROVIDER
|
||||||
|
value: "turnstile"
|
||||||
|
- name: SITE_KEY
|
||||||
|
value: "0x4AAAAAAAxJ2RPNWzn2LCc-"
|
||||||
|
- name: SECRET_KEY
|
||||||
|
value: "0x4AAAAAAAxJ2dwFOaNg5ae3c6wYTmWH0bU"
|
||||||
|
- name: CAPTCHA_TEMPLATE_PATH
|
||||||
|
value: /etc/nginx/lua/plugins/crowdsec/templates/captcha.html
|
||||||
command: ['sh', '-c', "bash /docker_start.sh; mkdir -p /lua_plugins/crowdsec/; cp -R /crowdsec/* /lua_plugins/crowdsec/"]
|
command: ['sh', '-c', "bash /docker_start.sh; mkdir -p /lua_plugins/crowdsec/; cp -R /crowdsec/* /lua_plugins/crowdsec/"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: crowdsec-bouncer-plugin
|
- name: crowdsec-bouncer-plugin
|
||||||
|
|||||||
在新议题中引用
屏蔽一个用户