chiya/config/prod.exs

28 lines
950 B
Elixir
Raw Normal View History

2023-03-05 16:07:40 +01:00
import Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# which you should run after static files are built and
# before starting your production server.
config :chiya, ChiyaWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json"
# Configures Swoosh API Client
config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: Chiya.Finch
2023-08-21 20:53:25 +02:00
# Do print debug messages in production
config :logger, :default_handler, level: :debug
2023-03-05 16:07:40 +01:00
2023-06-09 19:06:39 +02:00
config :cors_plug,
origin: ["app://obsidian.md"],
max_age: 86400,
methods: ["GET", "POST"],
expose: ["Location", "location"]
2023-06-09 19:06:39 +02:00
2023-03-05 16:07:40 +01:00
# Runtime production configuration, including reading
# of environment variables, is done on config/runtime.exs.