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

35 lines
738 B
Django/Jinja

{
{% if email is not none %}
email {{ email }}
{% endif %}
}
{% if "website" in group_names %}
http://www.{{ domain }} {
root * {{ website_path }}
file_server
}
{% endif %}
{% if groups["gitea"] | length > 0 %}
http://{{ gitea_domain }} {
reverse_proxy {{ groups["gitea"][0] }}:3000
}
{% endif %}
{% if groups["navidrome"] | length > 0 %}
http://{{ navidrome_domain }} {
reverse_proxy {{ groups["navidrome"][0] }}:4533
}
{% endif %}
{% if groups["synapse"] | length > 0 %}
http://{{ matrix_domain }} {
reverse_proxy /_matrix/* {{ groups["synapse"][0] }}:8008
reverse_proxy /_synapse/client/* {{ groups["synapse"][0] }}:8008
}
{{ matrix_domain }}:8448 {
reverse_proxy /_matrix/* {{ groups["synapse"][0] }}:8008
}
{% endif %}