Skip to content

Commit

Permalink
✨ add traefik tls challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
zcubbs committed Oct 14, 2023
1 parent 8aa0ebe commit d51be5b
Showing 1 changed file with 15 additions and 26 deletions.
41 changes: 15 additions & 26 deletions traefik/traefik.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,30 +318,21 @@ type Values struct {
}

var traefikValuesTmpl = `
globalArguments:
additionalArguments:
- "--global.checknewversion=false"
- "--global.sendanonymoususage=false"
global:
sendAnonymousUsage: false
checkNewVersion: false
log:
- "--entrypoints.web.http.redirections.entrypoint.to=websecure"
- "--entrypoints.web.http.redirections.entrypoint.scheme=https"
- "--entrypoints.web.http.redirections.entrypoint.permanent=false"
- "--entrypoints.web.http.redirections.entrypoint.priority=1"
{{- if .DebugLog }}
level: DEBUG
- "--log.level=DEBUG"
{{- else }}
level: INFO
- "--log.level=INFO"
{{- end }}
accessLogs:
{{- if .EnableAccessLog }}
enabled: true
{{- else }}
enabled: false
- "--accesslog=true"
{{- end }}
service:
enabled: true
type: LoadBalancer
rbac:
enabled: true
additionalArguments:
{{- range $i, $arg := .AdditionalArguments }}
- "{{ printf "%s" . }}"
{{- end }}
Expand Down Expand Up @@ -393,6 +384,13 @@ additionalArguments:
- "--certificatesresolvers.{{ .DnsResolver }}.acme.dnschallenge.resolvers={{ .DnsResolverIPs }}"
{{- end }}
{{- end }}
service:
enabled: true
type: LoadBalancer
rbac:
enabled: true
ports:
websecure:
tls:
Expand All @@ -412,15 +410,6 @@ ingressRoute:
dashboard:
enabled: {{ .EnableDashboard }}
logs:
general:
{{- if .DebugLog }}
level: DEBUG
{{- else }}
level: INFO
{{- end }}
access:
enabled: {{ .EnableAccessLog }}
pilot:
enabled: false
Expand Down

0 comments on commit d51be5b

Please sign in to comment.