Skip to content

Commit

Permalink
caddy: improve config
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed May 10, 2024
1 parent 8605e1f commit 151f31d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions templates/caddy/Caddyfile.j2
Original file line number Diff line number Diff line change
@@ -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 %}

0 comments on commit 151f31d

Please sign in to comment.