diff --git a/etc/Caddyfile.ctmpl b/etc/Caddyfile.ctmpl index c8c9531..25301b3 100644 --- a/etc/Caddyfile.ctmpl +++ b/etc/Caddyfile.ctmpl @@ -121,18 +121,14 @@ https://{{ $hosty }} { {{- if $origin | regexReplaceAll "^https://" "" | regexMatch ":" }}{{- else }} http://{{ $origin | regexReplaceAll "^https://" "" }} { - {{ if ne (env "ALLOWED_REMOTE_IPS_HTTP") "" }} @redir not remote_ip {{ env "ALLOWED_REMOTE_IPS_HTTP" }} redir @redir https://{host}{uri} permanent - {{ end }} - reverse_proxy {{ range $services }} {{ .Address }}:{{ .Port }} {{ end }} { lb_policy least_conn trusted_proxies {{ env "TRUSTED_PROXIES" }} } log - {{ end }} } {{- end -}} {{- end -}}