Mime types

This commit is contained in:
Mayel de Borniol 2022-04-07 15:26:40 +12:00
parent 21cfaa8e8f
commit 6fbf19c468
6 changed files with 8 additions and 10 deletions

View file

@ -77,7 +77,10 @@ RUN chmod +x config/*.sh && chmod +x priv/*.sh && sh config/deps.js.sh
# Compile Bonfire extensions
RUN MIX_ENV=prod mix do deps.compile
# migrations
# Update mime types
RUN MIX_ENV=prod mix do deps.clean --build mime
# Include migrations
COPY data/current_flavour/repo priv/repo
# bonfire-app code & assets

View file

@ -48,10 +48,3 @@ config :activity_pub, :json_contexts, %{
"ValueFlows" => "https://w3id.org/valueflows#",
"om2" => "http://www.ontology-of-units-of-measure.org/resource/om-2/"
}
config :mime, :types, %{
"application/json" => ["activity+json"],
"application/activity+json" => ["activity+json"],
"application/ld+json" => ["ld+json"],
"application/jrd+json" => ["jrd+json"]
}

View file

@ -72,6 +72,7 @@ config :bonfire, Oban,
]
config :mime, :types, %{
"application/json" => ["json"],
"application/activity+json" => ["activity+json"],
"application/ld+json" => ["ld+json"],
"application/jrd+json" => ["jrd+json"]

View file

@ -66,6 +66,7 @@ config :bonfire, Oban,
]
config :mime, :types, %{
"application/json" => ["json"],
"application/activity+json" => ["activity+json"],
"application/ld+json" => ["ld+json"],
"application/jrd+json" => ["jrd+json"]

View file

@ -65,12 +65,12 @@ config :bonfire, Oban,
]
config :mime, :types, %{
"application/json" => ["json"],
"application/activity+json" => ["activity+json"],
"application/ld+json" => ["ld+json"],
"application/jrd+json" => ["jrd+json"]
}
config :sentry,
dsn: "this-will-be-overriden-by-a-secure-string-in-runtime.exs",
environment_name: Mix.env,

View file

@ -66,12 +66,12 @@ config :bonfire, Oban,
]
config :mime, :types, %{
"application/json" => ["json"],
"application/activity+json" => ["activity+json"],
"application/ld+json" => ["ld+json"],
"application/jrd+json" => ["jrd+json"]
}
config :sentry,
dsn: "this-will-be-overriden-by-a-secure-string-in-runtime.exs",
environment_name: Mix.env,