summaryrefslogblamecommitdiff
path: root/config/config.exs
blob: caeeb69d284153fd0cf80c9385c9cfb84607a7c1 (plain) (tree)
1
2
3
4
5
6
7






                                                             




                                                              

                                     
                                   

                 
 
                                
 
                     

                                                  
 








                             
                         
                               

                                                                                      
                                                                   
               
                                             
                             

                                       

                                                       
                                     


                 
                                      

                       
 

                                     
 


                                                                    
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config

config :logger, level: :debug
config :logger, :console,
  format: "$date $time [$level$levelpad] $metadata$message\n",
  metadata: :all

config :phoenix, :json_library, Jason

# General application configuration
config :nola,
  namespace: Nola

config :nola, :data_path, "priv"

config :nola, :brand,
  name: "Nola",
  source_url: "https://phab.random.sh/source/Bot/"

config :ex_aws,
  region: "us-east-1",
  host: "s3.wasabisys.com",
  s3: [
    host: "s3.wasabisys.com",
    region: "us-east-1",
    scheme: "https://"
  ]

# Configures the endpoint
config :nola, NolaWeb.Endpoint,
  url: [host: "localhost"],
  secret_key_base: "cAFb7x2p/D7PdV8/C6Os18uygoD0FVQh3efNEFc5+5L529q3dofZtZye/BG12MRZ",
  render_errors: [view: NolaWeb.ErrorView, accepts: ~w(html json)],
  server: true,
  live_view: [signing_salt: "CHANGE_ME_FFS"],
  pubsub: [name: Nola.PubSub,
           adapter: Phoenix.PubSub.PG2]

config :mime, :types, %{"text/event-stream" => ["sse"]}

config :nola, Nola.IRC.LastFmHandler,
  api_key: "x",
  api_secret: "x"

config :nola, Nola.IRC.YouTubeHandler,
  api_key: "x",
  invidious: "yewtu.be"

config :mnesia,
  dir: '.mnesia/#{Mix.env}/#{node()}'

# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env}.exs"