system.edn 721 B

12345678910111213141516171819202122232425262728293031
  1. {:system/env
  2. #profile {:dev :dev
  3. :test :test
  4. :prod :prod}
  5. :server/http
  6. {:port #long #or [#env PORT 8080]
  7. :host #or [#env HTTP_HOST "0.0.0.0"]
  8. :handler #ig/ref :handler/ring}
  9. :handler/ring
  10. {:router #ig/ref :router/core}
  11. :reitit.routes/bench
  12. {:base-path ""
  13. :db-conn #ig/ref :db.sql/hikari-connection
  14. :cache #ig/ref :cache/inmem}
  15. :router/routes
  16. {:routes #ig/refset :reitit/routes}
  17. :router/core
  18. {:routes #ig/ref :router/routes}
  19. :db.sql/hikari-connection
  20. {:jdbc-url #or [#env JDBC_URL "jdbc:postgresql://localhost:5432/hello_world?user=benchmarkdbuser&password=benchmarkdbpass"]}
  21. :cache/inmem
  22. {:db-conn #ig/ref :db.sql/hikari-connection
  23. :threshold 10000}
  24. }