lab-ansible/roles/proxy/templates/caddy/local.Caddyfile.j2

35 lines
758 B
Plaintext
Raw Normal View History

2023-11-12 22:16:53 +00:00
# code: language=ansible-jinja
{
admin off
}
{% for env in ['production', 'staging'] %}
# Environment: {{ env }}
2023-11-24 22:01:12 +00:00
{{ proxy_vars[env].app01.apps_vars.ipfs.domain }} {
2023-11-13 20:45:10 +00:00
tls {{ tls_email }} {
dns njalla {{ njalla_api_token }}
2023-11-12 22:16:53 +00:00
}
header {
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
-Server
}
2023-11-24 22:01:12 +00:00
reverse_proxy {{ proxy_vars[env].app01.internal_ipv4 }}:8080
2023-11-12 22:16:53 +00:00
}
2023-11-24 22:01:12 +00:00
{{ proxy_vars[env].app01.apps_vars.monerod.domain }} {
2023-11-13 20:45:10 +00:00
tls {{ tls_email }} {
dns njalla {{ njalla_api_token }}
2023-11-12 22:16:53 +00:00
}
header {
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
-Server
}
2023-11-24 22:01:12 +00:00
reverse_proxy {{ proxy_vars[env].app01.internal_ipv4 }}:8080
2023-11-12 22:16:53 +00:00
}
{% endfor %}