-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCaddyfile
45 lines (39 loc) · 1.12 KB
/
Caddyfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# The Caddyfile is an easy way to configure your Caddy web server.
#
# Unless the file starts with a global options block, the first
# uncommented line is always the address of your site.
#
# To use your own domain name (with automatic HTTPS), first make
# sure your domain's A/AAAA DNS records are properly pointed to
# this machine's public IP, then replace ":80" below with your
# domain name.
{
# auto_https on
acme_ca https://acme-v02.api.letsencrypt.org/directory
log {
level ERROR
}
}
:443 {
bind
log {
output file /var/log/caddy/access-:443.log
}
#tls /var/lib/secrets/infra.holochain.org/cert.pem /var/lib/secrets/infra.holochain.org/key.pem
tls /var/lib/secrets/dweb.city.pem /var/lib/secrets/dweb.city.key
reverse_proxy http://127.0.0.1:3000
reverse_proxy /appWebsocket0 http://127.0.0.1:3030
reverse_proxy /appWebsocket1 http://127.0.0.1:3031
reverse_proxy /appWebsocket2 http://127.0.0.1:3032
reverse_proxy /appWebsocket3 http://127.0.0.1:3033
}
#:80 {
# bind
#
# log {
# output file /var/log/caddy/access-:80.log
# }
#
# reverse_proxy /appWebsocket http://127.0.0.1:3030
# reverse_proxy http://127.0.0.1:3000
#}