{
  auto_https off
}

https://{$APP_HOST} {
  tls /certs/dev-proxy-cert.pem /certs/dev-proxy-key.pem

  handle_path /api/* {
    reverse_proxy backend:8000
  }

  reverse_proxy frontend:5173
}

http://{$APP_HOST} {
  redir https://{$APP_HOST}{uri}
}
