homeserver-iac/roles/caddy/templates/Caddyfile.j2

25 lines
443 B
Caddyfile
Raw Normal View History

2023-09-03 20:50:07 -04:00
{
{% if email is not none %}
email {{ email }}
{% endif %}
}
2023-08-23 17:31:22 -04:00
{% if "website" in group_names %}
2023-09-03 20:50:07 -04:00
http://www.{{ domain }} {
root * {{ website_path }}
file_server
}
{% endif %}
2023-08-28 20:34:25 -04:00
2023-09-03 20:50:07 -04:00
{% if groups["gitea"] | length > 0 %}
http://{{ gitea_domain }} {
2023-08-28 20:34:25 -04:00
reverse_proxy {{ groups["gitea"][0] }}:3000
}
{% endif %}
2023-09-04 18:27:08 -04:00
{% if groups["navidrome"] | length > 0 %}
http://{{ navidrome_domain }} {
reverse_proxy {{ groups["navidrome"][0] }}:4533
}
{% endif %}