add caddy

This commit is contained in:
root
2022-05-26 17:58:02 +00:00
parent be6d2f94eb
commit aac1ca4df4
3 changed files with 34 additions and 5 deletions

16
Caddyfile Normal file
View File

@@ -0,0 +1,16 @@
http://:{$PORT} {
root * /root/html
file_server
reverse_proxy /h2 127.0.0.1:8082 {
transport http {
versions h2c
}
}
@websockets {
header Connection *Upgrade*
header Upgrade websocket
}
reverse_proxy @websockets localhost:8080
}