Music streaming on ATProto!
at main 3.0 kB view raw
1import Config 2 3# Configure your database 4config :comet, Comet.Repo, 5 username: "comet", 6 password: "comet", 7 hostname: "localhost", 8 database: "comet_dev", 9 stacktrace: true, 10 show_sensitive_data_on_connection_error: true, 11 pool_size: 10 12 13# For development, we disable any cache and enable 14# debugging and code reloading. 15# 16# The watchers configuration can be used to run external 17# watchers to your application. For example, we can use it 18# to bundle .js and .css sources. 19config :comet, CometWeb.Endpoint, 20 # Binding to loopback ipv4 address prevents access from other machines. 21 # Change to `ip: {0, 0, 0, 0}` to allow access from other machines. 22 http: [ip: {127, 0, 0, 1}], 23 check_origin: false, 24 code_reloader: true, 25 debug_errors: true, 26 secret_key_base: "qEVbyaHJ1+52Mfh7Kfoc94yEwNc/e5vkRDUcAR4b3DofYJg7LgUjm4kd+3u+RelM", 27 watchers: [ 28 esbuild: {Esbuild, :install_and_run, [:comet, ~w(--sourcemap=inline --watch)]}, 29 tailwind: {Tailwind, :install_and_run, [:comet, ~w(--watch)]} 30 ] 31 32# ## SSL Support 33# 34# In order to use HTTPS in development, a self-signed 35# certificate can be generated by running the following 36# Mix task: 37# 38# mix phx.gen.cert 39# 40# Run `mix help phx.gen.cert` for more information. 41# 42# The `http:` config above can be replaced with: 43# 44# https: [ 45# port: 4001, 46# cipher_suite: :strong, 47# keyfile: "priv/cert/selfsigned_key.pem", 48# certfile: "priv/cert/selfsigned.pem" 49# ], 50# 51# If desired, both `http:` and `https:` keys can be 52# configured to run both http and https servers on 53# different ports. 54 55# Reload browser tabs when matching files change. 56config :comet, CometWeb.Endpoint, 57 live_reload: [ 58 web_console_logger: true, 59 patterns: [ 60 # Static assets, except user uploads 61 ~r"priv/static/(?!uploads/).*\.(js|css|png|jpeg|jpg|gif|svg)$", 62 # Gettext translations 63 ~r"priv/gettext/.*\.po$", 64 # Router, Controllers, LiveViews and LiveComponents 65 ~r"lib/comet_web/router\.ex$", 66 ~r"lib/comet_web/(controllers|live|components)/.*\.(ex|heex)$" 67 ] 68 ] 69 70# Enable dev routes for dashboard and mailbox 71config :comet, dev_routes: true 72 73# Do not include metadata nor timestamps in development logs 74config :logger, :default_formatter, format: "[$level] $message\n" 75 76# Set a higher stacktrace during development. Avoid configuring such 77# in production as building large stacktraces may be expensive. 78config :phoenix, :stacktrace_depth, 20 79 80# Initialize plugs at runtime for faster development compilation 81config :phoenix, :plug_init_mode, :runtime 82 83config :phoenix_live_view, 84 # Include debug annotations and locations in rendered markup. 85 # Changing this configuration will require mix clean and a full recompile. 86 debug_heex_annotations: true, 87 debug_attributes: true, 88 # Enable helpful, but potentially expensive runtime checks 89 enable_expensive_runtime_checks: true 90 91# Disable swoosh api client as it is only required for production adapters. 92config :swoosh, :api_client, false