1. 反向代理
Caddyfile
irc.lemo.site {
proxy / http://thelounge:9000
gzip
log ../access.log
tls [email protected]
}
docker 命令
docker run -v $(pwd)/Caddyfile:/etc/Caddyfile -p 80:80 -p 443:443 -e ACME_AGREE=true --link thelounge:thelounge --name some-caddy -d abiosoft/caddy
代理 websocket
irc.lemo.site {
proxy /socket.io thelounge:9000 { websocket } # not support http2.0
proxy / thelounge:9000
gzip
log ../access.log
tls [email protected] { alpn http/1.1 }
}