Unify HTTP metadata handling

This commit is contained in:
2026-03-18 18:00:07 +01:00
parent c30449b318
commit 9014912e9d
11 changed files with 166 additions and 6 deletions

View File

@@ -1,8 +1,19 @@
import Config
project_version =
case Mix.Project.config()[:version] do
version when is_binary(version) -> version
version -> to_string(version)
end
config :postgrex, :json_library, JSON
config :parrhesia,
metadata: [
name: "Parrhesia",
version: project_version,
hide_version?: true
],
database: [
separate_read_pool?: config_env() != :test
],