{$CADDY_SITE_ADDR:http://localhost} {
  route {
    handle /api/* {
      reverse_proxy backend:3000
    }

    handle /health* {
      reverse_proxy backend:3000
    }

    handle /s/* {
      reverse_proxy backend:3000
    }

    encode zstd gzip
    root * /srv
    try_files {path} /index.html
    file_server
  }
}

live.khhao.com {
  reverse_proxy douyu-login:8800
}
