{
  email {$ZYNKLOG_ACME_EMAIL}
}

{$ZYNKLOG_APP_HOST} {
  encode zstd gzip
  header {
    X-Content-Type-Options nosniff
    Referrer-Policy strict-origin-when-cross-origin
    X-Frame-Options DENY
  }
  handle_path /api/* {
    reverse_proxy api:3000 {
      flush_interval -1
    }
  }
  handle {
    reverse_proxy web:8080
  }
}

{$ZYNKLOG_API_HOST} {
  encode zstd gzip
  reverse_proxy api:3000 {
    flush_interval -1
  }
}
