k8s/infrastructure/haproxy/values.yaml

56 lines
1.1 KiB
YAML
Raw Normal View History

2026-05-04 08:39:38 +00:00
service:
2026-05-04 08:42:13 +00:00
type: NodePort
nodePorts:
http: 30080
https: 30443
2026-05-04 08:39:38 +00:00
extraVolumes:
2026-05-04 08:42:13 +00:00
- name: tls-source
secret:
secretName: wildcard-jethrocotton-com-tls
- name: tls-pem
emptyDir: {}
2026-05-04 08:39:38 +00:00
initContainers:
2026-05-04 08:42:13 +00:00
- name: build-tls-pem
image: busybox:1.36
command:
- /bin/sh
- -ec
- |
cat /certs/tls.crt /certs/tls.key > /tls/tls.pem
volumeMounts:
- name: tls-source
mountPath: /certs
readOnly: true
- name: tls-pem
mountPath: /tls
2026-05-04 08:39:38 +00:00
extraVolumeMounts:
2026-05-04 08:42:13 +00:00
- name: tls-pem
mountPath: /usr/local/etc/ssl
2026-05-04 08:39:38 +00:00
config: |
2026-05-04 08:42:13 +00:00
global
log stdout format raw local0
maxconn 1024
defaults
log global
timeout client 60s
timeout connect 10s
timeout server 60s
frontend fe_http
bind :80
http-request redirect scheme https code 301 if !{ ssl_fc }
frontend fe_https
bind :443 ssl crt /usr/local/etc/ssl/tls.pem
acl host_forgejo hdr(host) -i forgejo.jethrocotton.com
use_backend be_forgejo if host_forgejo
default_backend be_forgejo
backend be_forgejo
server forgejo forgejo.forgejo.svc.cluster.local:80 check