This message was deleted.
# announcements
s
This message was deleted.
m
Hey Clark, Iโ€™ve seen a few hits in search for caddy (canโ€™t link to search results in Slack, I guess ๐Ÿ˜ž). If none of those threads answer your question, someone here can probably help.
c
I've been running livekit with nginx, caddy and traefik.. it works with all of them
๐Ÿ™ 1
Caddyfile
Copy code
{$LIVEKIT_SITE_ADDRESS} {
  tls {$ADMIN_EMAIL}
  reverse_proxy /rtc livekit:7880 {
    header_up Host {host}
    header_up X-Real-IP {remote}
    header_up X-Forwarded-For {remote}
    header_up X-Fordwarded-Proto {scheme}
  }
}
this assumes you have an environment variable LIVEKIT_SITE_ADDRESS=webrtc.yourdomain.com (or whatever your public address is) and ADMIN_EMAIL=your@email.com that is for getting let's encrypt certificates
if you use docker-compose:
Copy code
caddy:
  restart: always
  image: caddy:2.4.6-alpine
  volumes:
     - ./Caddyfile::/etc/caddy/Caddyfile
  ports:
    - 80:80
    - 443:443
  environment:
    - LIVEKIT_SITE_ADDRESS=<http://webrtc.yourdomain.com|webrtc.yourdomain.com>
    - ADMIN_EMAIL=your@email.com
something like that
c
Awesome thanks very much everyone! I'm looking at using docker compose so that helps. Want this to be the first compose file I make!
c
@cool-horse-26286 no problem, let me know if you have trouble with it ๐Ÿ˜‰
๐Ÿ‘ 1