(aivudaos_common_route) {
  @api path /aivuda_os/api*

  route {
    handle @api {
      reverse_proxy 127.0.0.1:8000
    }

    # BEGIN AIVUDA APP IMPORTS
    # END AIVUDA APP IMPORTS

    handle {
      encode zstd gzip
      root * ./ui/dist
      try_files {path} /index.html
      file_server
    }
  }
}

http://127.0.0.1:80 {
  import aivudaos_common_route
}

https://__AVAHI_HOSTNAME__.local:443 {
  tls internal
  import aivudaos_common_route
}
