Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh committed Jan 11, 2025
1 parent 7e11032 commit 094cb9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions etc/Caddyfile.ctmpl
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ http:// {
}

{{- if ne (env "ALLOWED_REMOTE_IPS_HTTP") "" }}
{{- if $tag | regexReplaceAll "^https://" "" | regexMatch ":" }}
{{- else }}
{{- if $tag | regexMatch "^https://[^:]+$" }}
http://{{ $tag | regexReplaceAll "^https://" "" }} {
@redir not remote_ip {{ env "ALLOWED_REMOTE_IPS_HTTP" }}
redir @redir https://{host}{uri} permanent
Expand Down

0 comments on commit 094cb9e

Please sign in to comment.