import Config config :sloanely_but_surely, Oban, engine: Oban.Engines.Basic, notifier: Oban.Notifiers.Postgres, queues: [default: 10], repo: Core.Repo config :elixir, :time_zone_database, Tzdata.TimeZoneDatabase config :esbuild, version: "0.17.11", sloanely_but_surely: [ args: ~w(js/app.js --bundle --target=es2017 --outdir=../priv/static/assets --external:/fonts/* --external:/images/*), cd: Path.expand("../assets", __DIR__), env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)} ] config :logger, :console, format: "$time $metadata[$level] $message\n", metadata: [:request_id] config :phoenix, :json_library, Jason config :sloanely_but_surely, Web.Endpoint, url: [host: "localhost"], adapter: Bandit.PhoenixAdapter, render_errors: [ formats: [html: Web.ErrorHTML, json: Web.ErrorJSON], layout: false ], pubsub_server: Core.PubSub, live_view: [signing_salt: "afQxdsCJ"] config :sloanely_but_surely, namespace: Core, ecto_repos: [Core.Repo], generators: [timestamp_type: :utc_datetime_usec, binary_id: true], author: %{ name: "Sloane", username: "sloanelybutsurely", avatar_emoji: "💜", avatar_url: nil } config :sloanely_but_surely, Core.Repo, migration_timestamps: [type: :utc_datetime_usec] config :tailwind, version: "3.4.3", sloanely_but_surely: [ args: ~w( --config=tailwind.config.js --input=css/app.css --output=../priv/static/assets/app.css ), cd: Path.expand("../assets", __DIR__) ] config :flop, repo: Core.Repo config :tesla, adapter: Tesla.Adapter.Mint mastodon_instance = "https://tech.lgbt" config :sloanely_but_surely, Core.Syndication, mastodon_instance: mastodon_instance config :ueberauth, Ueberauth, providers: [ mastodon: {Ueberauth.Strategy.Mastodon, [ instance: mastodon_instance, client_id: {System, :get_env, ["MASTODON_CLIENT_ID"]}, client_secret: {System, :get_env, ["MASTODON_CLIENT_SECRET"]}, scope: "read write push" ]} ] import_config "#{config_env()}.exs"