From 151f31de00835c1844395200dbf945fbce04e474 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Fri, 10 May 2024 13:42:32 -0700 Subject: [PATCH] caddy: improve config --- templates/caddy/Caddyfile.j2 | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/templates/caddy/Caddyfile.j2 b/templates/caddy/Caddyfile.j2 index 9e11c99..e58b0e9 100644 --- a/templates/caddy/Caddyfile.j2 +++ b/templates/caddy/Caddyfile.j2 @@ -1,19 +1,16 @@ {{ ansible_host }} -@nfdstatus { - path / - path /nfd-status.xsl - path /*.css -} - +@nfdstatus path / /nfd-status.xsl /*.css reverse_proxy @nfdstatus http://nfd-http-status-server:8080 -reverse_proxy /ws* http://nfd:9696 + +@ws path /ws /ws/* +reverse_proxy @ws http://nfd:9696 root * /srv file_server {% if is_root_ca is defined %} -handle_path /root-ca* { +handle_path /root-ca/* { reverse_proxy http://root-http-ca:8777 } {% endif %}