44 lines
1.2 KiB
Go Template
44 lines
1.2 KiB
Go Template
|
{
|
||
|
admin off
|
||
|
grace_period {{ .Caddy.GracePeriod }}
|
||
|
{{- if .Caddy.TLS.UseCustomCertificates -}}
|
||
|
{{ print "" }}
|
||
|
local_certs
|
||
|
skip_install_trust
|
||
|
auto_https disable_certs
|
||
|
{{- end -}}
|
||
|
{{ print "" }}
|
||
|
{{- if not .Caddy.TLS.UseCustomCertificates -}}
|
||
|
{{ print "" }}
|
||
|
email {{ .Caddy.TLS.AcmeEmail }}
|
||
|
{{- end -}}
|
||
|
{{ print "" }}
|
||
|
}
|
||
|
|
||
|
{{ .RootDomain }} {
|
||
|
{{- if .Caddy.TLS.UseCustomCertificates -}}
|
||
|
{{ print "" }}
|
||
|
tls {{ .Caddy.TLS.ContainerDirectory}}/caddy.crt {{ .Caddy.TLS.ContainerDirectory }}/caddy.key
|
||
|
{{- end -}}
|
||
|
{{ print "" }}
|
||
|
reverse_proxy {{ .Landing.ContainerIpv4Address }}:{{ .Landing.Port }}
|
||
|
}
|
||
|
|
||
|
{{ .Forgejo.Subdomain }}.{{ .RootDomain }} {
|
||
|
{{- if .Caddy.TLS.UseCustomCertificates -}}
|
||
|
{{ print "" }}
|
||
|
tls {{ .Caddy.TLS.ContainerDirectory}}/caddy.crt {{ .Caddy.TLS.ContainerDirectory }}/caddy.key
|
||
|
{{- end -}}
|
||
|
{{ print "" }}
|
||
|
reverse_proxy {{ .Forgejo.ContainerIpv4Address }}:{{ .Forgejo.HttpPort }}
|
||
|
}
|
||
|
|
||
|
{{ .GoToSocial.Subdomain }}.{{ .RootDomain }} {
|
||
|
{{- if .Caddy.TLS.UseCustomCertificates -}}
|
||
|
{{ print "" }}
|
||
|
tls {{ .Caddy.TLS.ContainerDirectory}}/caddy.crt {{ .Caddy.TLS.ContainerDirectory }}/caddy.key
|
||
|
{{- end -}}
|
||
|
{{ print "" }}
|
||
|
reverse_proxy {{ .GoToSocial.ContainerIpv4Address }}:{{ .GoToSocial.Port }}
|
||
|
}
|