File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 3
3
vars :
4
4
caddy :
5
5
addresses :
6
- main : " https:// matplotlib.org"
7
- webhook : " https:// do.matplotlib.org"
6
+ main : " matplotlib.org"
7
+ webhook : " do.matplotlib.org"
8
8
site_dir : " /usr/share/caddy"
9
9
tls_config : " tls /etc/caddy/tls/cert.pem /etc/caddy/tls/privkey.pem"
10
10
repos :
Original file line number Diff line number Diff line change 13
13
}
14
14
15
15
# Setup webhooks
16
- {{ caddy.addresses.webhook }} {
17
16
{% if caddy .tls_config is defined %}
17
+ https://{{ caddy.addresses.webhook }} {
18
18
{{ caddy.tls_config }}
19
+ {% else %}
20
+ http://{{ caddy.addresses.webhook }} {
19
21
{% endif %}
20
22
21
23
root * {{ caddy.site_dir }}
47
49
}
48
50
}
49
51
50
- {{ caddy.addresses.main }} {
51
52
{% if caddy .tls_config is defined %}
53
+ https://{{ caddy.addresses.main }} {
52
54
{{ caddy.tls_config }}
55
+ {% else %}
56
+ http://{{ caddy.addresses.main }} {
53
57
{% endif %}
54
58
55
59
root * {{ caddy.site_dir }}
You can’t perform that action at this time.
0 commit comments