This repository has been archived on 2023-05-06. You can view files and clone it, but cannot push or open issues or pull requests.
helix/internal/stacks/templates/gitea/dynamic_git.yaml.tmpl

35 lines
666 B
Cheetah
Raw Normal View History

2021-09-01 22:04:40 +01:00
---
http:
routers:
gitea:
entryPoints:
- "https"
rule: "Host(`{{ .Domain }}`) && PathPrefix(`/{{ .BaseUri }}`)"
service: "git"
middlewares:
- "git-strip-prefix"
tls: {}
middlewares:
git-strip-prefix:
stripPrefix:
prefixes:
- "/{{ .BaseUri }}"
services:
git:
loadBalancer:
servers:
- url: "http://{{ .ContainerIp }}:{{ .HttpPort }}/"
tcp:
routers:
gitSSH:
entryPoints:
- "ssh"
rule: "HostSNI(`*`)"
service: "gitSSH"
services:
gitSSH:
loadBalancer:
servers:
- address: "{{ .ContainerIp }}:{{ .SshPort }}"