Update Caddyfile example to Caddy v2

This commit is contained in:
Kitaiti Makoto 2021-01-03 02:46:08 +09:00
parent cf7f6bb9a6
commit ba31ed55cc

View file

@ -117,20 +117,14 @@ To install Caddy, please refer to [their website](https://caddyserver.com/docs/i
a file called `Caddyfile` in the same directory you ran `mkcert` and write this inside.
```
plume.one:443 {
bind 127.0.0.1
proxy / 127.0.0.1:7878 {
transparent
}
tls plume.one+1.pem plume.one+1-key.pem
plume01.localhost {
reverse_proxy localhost:7878
tls plume01.localhost.pem plume01.localhost-key.pem
}
plume.two:443 {
bind 127.0.0.1
proxy / 127.0.0.1:8787 {
transparent
}
tls plume.one+1.pem plume.one+1-key.pem
plume02.localhost {
reverse_proxy 127.0.0.1:8787
tls plume02.localhost.pem plume02.localhost-key.pem
}
```