services/templates/traefik/dynamic_forgejo.yaml.gotmpl
Dan Anglin 1758d5a85c
chore(traefik): move traefik config to traefik
Move codeflow traefik configuration template over to the traefik
template directory.
2023-08-26 11:48:45 +01:00

28 lines
595 B
Go Template

---
http:
routers:
gitea:
entryPoints:
- "https"
rule: "Host(`{{ .Forgejo.Subdomain }}.{{ .RootDomain }}`)"
service: "git"
tls:
certResolver: resolver
services:
git:
loadBalancer:
servers:
- url: "http://{{ .Forgejo.ContainerIpv4Address }}:{{ .Forgejo.HttpPort }}/"
tcp:
routers:
gitSSH:
entryPoints:
- "gitSSH"
rule: "HostSNI(`*`)"
service: "gitSSH"
services:
gitSSH:
loadBalancer:
servers:
- address: "{{ .Forgejo.ContainerIpv4Address }}:{{ .Forgejo.SshPort }}"