summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorhref <href@random.sh>2021-09-02 02:48:38 +0200
committerhref <href@random.sh>2021-09-02 02:50:25 +0200
commitb429aaa33910fe445e92503ae3cc7db67b806a42 (patch)
tree1634846a6c4b82d457f22fa461444c95966c6086 /config
parentlink: humanize file size (diff)
chores
Diffstat (limited to 'config')
-rw-r--r--config/config.exs12
-rw-r--r--config/dev.exs4
-rw-r--r--config/prod.exs2
3 files changed, 11 insertions, 7 deletions
diff --git a/config/config.exs b/config/config.exs
index 139e646..ba4426d 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -5,6 +5,11 @@
# 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
+
# General application configuration
config :lsg,
namespace: LSG
@@ -38,6 +43,8 @@ config :logger, :console,
config :mime, :types, %{"text/event-stream" => ["sse"]}
+# THIS IS NOT USED ANYMORE!
+# XXX: Make sure it is not used anymore and remove..
config :lsg, :irc,
name: "irc bot",
handlers: [
@@ -76,8 +83,11 @@ config :lsg, LSG.IRC.LastFmHandler,
api_secret: "x"
config :lsg, LSG.IRC.YouTubeHandler,
- api_key: "x"
+ 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.
diff --git a/config/dev.exs b/config/dev.exs
index 24e9b16..23780c3 100644
--- a/config/dev.exs
+++ b/config/dev.exs
@@ -40,13 +40,9 @@ config :lsg, LSGWeb.Endpoint,
]
]
-# Do not include metadata nor timestamps in development logs
-config :logger, :console, format: "[$level] $message\n"
-
# Set a higher stacktrace during development. Avoid configuring such
# in production as building large stacktraces may be expensive.
config :phoenix, :stacktrace_depth, 20
import_config "secret.exs"
import_config "dev.secret.exs"
-
diff --git a/config/prod.exs b/config/prod.exs
index 4e00b42..b970a5d 100644
--- a/config/prod.exs
+++ b/config/prod.exs
@@ -3,7 +3,5 @@ use Mix.Config
config :lsg, LSGWeb.Endpoint,
http: [ip: {0,0,0,0}, port: 4000]
-config :logger, level: :debug
-
import_config "secret.exs"
import_config "prod.secret.exs"