fluxer/fluxer_devops/livekit/caddy.yaml.template

51 lines
1.1 KiB
Plaintext

logging:
logs:
default:
level: INFO
storage:
module: 'file_system'
root: '/data'
apps:
tls:
automation:
policies:
- subjects:
- '${LIVEKIT_DOMAIN}'
- '${LIVEKIT_DOMAIN_TURN}'
issuers:
- module: acme
on_demand: false
certificates:
automate:
- '${LIVEKIT_DOMAIN}'
- '${LIVEKIT_DOMAIN_TURN}'
layer4:
servers:
main:
listen: [':443']
routes:
- match:
- tls:
sni:
- '${LIVEKIT_DOMAIN_TURN}'
handle:
- handler: tls
- handler: proxy
upstreams:
- dial: ['livekit:5349']
- match:
- tls:
sni:
- '${LIVEKIT_DOMAIN}'
handle:
- handler: tls
connection_policies:
- alpn: ['acme-tls/1', 'http/1.1']
- handler: proxy
upstreams:
- dial: ['livekit:7880']