29
29
service :
30
30
enableHttp : false
31
31
annotations :
32
- external-dns.alpha.kubernetes.io/hostname : external.${DOMAIN}
32
+ external-dns.alpha.kubernetes.io/hostname : &hostname external.${DOMAIN}
33
33
lbipam.cilium.io/ips : ${INGRESS_NGINX_EXTERNAL_IP}
34
34
ingressClassResource :
35
35
name : external
@@ -41,17 +41,23 @@ spec:
41
41
- key : ingress-class
42
42
operator : In
43
43
values : ["external"]
44
- allowSnippetAnnotations : true
45
44
config :
46
- # taken from https://github.com/superseriousbusiness/gotosocial/blob/main/internal/web/robots.go
47
- block-user-agents : " GPTBot,~*GPTBot*,ChatGPT-User,~*ChatGPT-User*,Google-Extended,~*Google-Extended*,CCBot,~*CCBot*,Omgilibot,~*Omgilibot*,FacebookBot,~*FacebookBot*"
48
- client-body-buffer-size : 50M
45
+ allow-snippet-annotations : true
46
+ annotations-risk-level : Critical
47
+ # taken from https://github.com/ai-robots-txt/ai.robots.txt
48
+ block-user-agents : " AdsBot-Google,Amazonbot,anthropic-ai,Applebot-Extended,Bytespider,CCBot,ChatGPT-User,ClaudeBot,Claude-Web,cohere-ai,Diffbot,FacebookBot,FriendlyCrawler,Google-Extended,GoogleOther,GPTBot,img2dataset,omgili,omgilibot,peer39_crawler,peer39_crawler/1.0,PerplexityBot,YouBot,"
49
+ client-body-buffer-size : 100M
50
+ client-body-timeout : 120
51
+ client-header-timeout : 120
49
52
custom-http-errors : 400,403,404,405,409,410,411,412,413,414,415,416,417,418,421,425,431,451,500,501,502,503,504,505,506,510
50
53
enable-brotli : " true"
51
54
enable-ocsp : " true"
52
55
enable-real-ip : " true"
53
56
force-ssl-redirect : " true"
54
57
hide-headers : Server,X-Powered-By
58
+ hsts-max-age : 31449600
59
+ keep-alive-requests : 10000
60
+ keep-alive : 120
55
61
log-format-escape-json : " true"
56
62
log-format-upstream : >
57
63
{"time": "$time_iso8601", "remote_addr": "$proxy_protocol_addr",
64
70
proxy-body-size : 0
65
71
proxy-buffer-size : 16k
66
72
ssl-protocols : TLSv1.3 TLSv1.2
67
- use-geoip2 : " true"
68
73
use-forwarded-headers : " true"
69
74
metrics :
70
75
enabled : true
74
79
any : true
75
80
extraArgs :
76
81
default-ssl-certificate : network/${DOMAIN/./-}-tls
82
+ publish-status-address : *hostname
83
+ terminationGracePeriodSeconds : 120
84
+ publishService :
85
+ enabled : false
77
86
resources :
78
87
requests :
79
88
cpu : 100m
97
106
extraEnvs :
98
107
- name : TEMPLATE_NAME
99
108
value : app-down
100
- valuesFrom :
101
- - targetPath : controller.maxmindLicenseKey
102
- kind : Secret
103
- name : nginx-external-maxmind
104
- valuesKey : MAXMIND_LICENSE_KEY
0 commit comments