feat(nginx): 增加验证码相关设置

这个提交包含在:
2024-10-11 19:37:50 +08:00
未验证
父节点 f1c90e981d
当前提交 1e2d68f4a6
修改 3 个文件,包含 32 行新增22 行删除
+24
查看文件
@@ -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
-22
查看文件
@@ -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
+8
查看文件
@@ -115,6 +115,14 @@ spec:
value: "rgILO2mh/t+30LMvzyyMXbfHRmDfBkDDkhEflzHaoQ0"
- name: BOUNCER_CONFIG
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/"]
volumeMounts:
- name: crowdsec-bouncer-plugin