35 lines
666 B
Cheetah
35 lines
666 B
Cheetah
|
---
|
||
|
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 }}"
|