From c3354c0cec417d0d667a6521c937d6d425662aa2 Mon Sep 17 00:00:00 2001 From: hubaceks Date: Sat, 2 May 2026 22:08:54 +0200 Subject: [PATCH] fix of internal --- templates/proxy.caddy.j2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/proxy.caddy.j2 b/templates/proxy.caddy.j2 index ea6c2a3..434dc23 100644 --- a/templates/proxy.caddy.j2 +++ b/templates/proxy.caddy.j2 @@ -5,9 +5,10 @@ {% if auth %} import common_auth {% endif %} + {% if internal %} @internal { - remote_ip {% for range in internal_ranges %}{{ range }}{% if not loop.last %} {% endif %}{% endfor %} + remote_ip{% for item in internal_ranges %} {{ item }}{% endfor %} } handle @internal { @@ -31,7 +32,9 @@ handle { respond "Forbidden" 403 } + {% else %} + {% if reverse_proxy_block %} reverse_proxy {{ backend }} { {% if real_ip %} @@ -47,5 +50,6 @@ {% else %} reverse_proxy {{ backend }} {% endif %} + {% endif %} } \ No newline at end of file