labriqueinternet.j2 570 Bytes
Newer Older
1
2
{{ ansible_managed | comment }}

HgO's avatar
HgO committed
3
4
5
{% for domain in [web_app_domain] + web_app_alt_domains %}
http://{{ domain }}{% if not loop.last %}, {% endif %}
{% endfor %} {
6
7
8
9
10
11
12
13
    root * {{ web_app_dist_dir | to_json }}
    encode gzip

    @browse {
        path /video*
        path /files*
        path /hypercube*
    }
HgO's avatar
HgO committed
14
    file_server @browse browse
HgO's avatar
HgO committed
15
16
17
18
19
20
21
22
23

    @cfacile {
        path /
        host cfacile.{{ web_app_domain }}
    }
    file_server @cfacile {
        index cfacile.html
    }

HgO's avatar
HgO committed
24
    file_server
25
26
27
28
29

    log {
        output file {{ web_app_caddy_log | to_json }}
    }
}