Skip to content

Commit

Permalink
typo fix & a simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh committed Jan 9, 2025
1 parent 0b181c5 commit bd47cd2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions etc/Caddyfile.ctmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand Down

0 comments on commit bd47cd2

Please sign in to comment.