Initial version of the caddy rule
Signed-off-by: Nis Wechselberg <enbewe@enbewe.de>
This commit is contained in:
parent
6b7f10a1e1
commit
79a75602b7
10 changed files with 303 additions and 0 deletions
17
roles/caddy/templates/Caddyfile.j2
Normal file
17
roles/caddy/templates/Caddyfile.j2
Normal file
|
@ -0,0 +1,17 @@
|
|||
{% if caddy_use_local_certs %}
|
||||
{
|
||||
local_certs
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
{% for site in caddy_sites %}
|
||||
{{ site.name }} {
|
||||
{% if site.directives is defined %}
|
||||
{{ site.directives }}
|
||||
{% endif %}
|
||||
{% if site.proxy_to is defined %}
|
||||
reverse_proxy {{ site.proxy_to }}
|
||||
{% endif %}
|
||||
}
|
||||
|
||||
{% endfor %}
|
Loading…
Add table
Add a link
Reference in a new issue