RustRover cargo-generate template: Axum + Vue 3 + TypeScript + Tailwind + sqlx
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 rivejä
1.0 KiB

  1. # Shared by the Axum server and the Vite reverse-proxy plugin.
  2. # Precedence: default.toml → {APP_ENV}.toml → APP__SECTION__KEY env vars.
  3. [app]
  4. name = "rust-template"
  5. description = "Axum + Vue + PostgreSQL fullstack app"
  6. [server]
  7. host = "127.0.0.1"
  8. port = 8080
  9. # Public origin the API advertises in OpenAPI (and that Vite proxies to).
  10. public_url = "http://127.0.0.1:8080"
  11. [frontend]
  12. host = "127.0.0.1"
  13. port = 5173
  14. # Vite binds here so /api is never resolved to IPv6 ::1.
  15. public_url = "http://127.0.0.1:5173"
  16. [database]
  17. url = "postgres://app:app@127.0.0.1:5432/app"
  18. max_connections = 10
  19. min_connections = 1
  20. acquire_timeout_secs = 5
  21. idle_timeout_secs = 600
  22. run_migrations = true
  23. [logging]
  24. # trace | debug | info | warn | error
  25. level = "info"
  26. # pretty | json
  27. format = "pretty"
  28. # Extra directive, e.g. "sqlx=warn,tower_http=debug"
  29. filter = "server=debug,tower_http=info,sqlx=warn"
  30. [cors]
  31. # Development allows the Vite origin. Production should list real origins.
  32. allowed_origins = ["http://127.0.0.1:5173"]
  33. allow_credentials = true