services/templates/traefik/dynamic_forgejo.yaml.gotmpl

29 lines
595 B
Go Template
Raw Normal View History

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