summaryrefslogtreecommitdiff
path: root/config/config.exs
diff options
context:
space:
mode:
authorhref <href@random.sh>2018-02-17 21:21:42 +0100
committerhref <href@random.sh>2018-02-17 21:21:42 +0100
commit50c6a09ff64cb081b27a0c30790b86873449d172 (patch)
treeba1bebfc7e367f169276692e0ac02709d62d6516 /config/config.exs
parenttxt: fix against malicious filenames (aka 'fuck you shiv') (diff)
:)
Diffstat (limited to 'config/config.exs')
-rw-r--r--config/config.exs25
1 files changed, 18 insertions, 7 deletions
diff --git a/config/config.exs b/config/config.exs
index 8933545..c16b3d5 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -9,6 +9,10 @@ use Mix.Config
config :lsg,
namespace: LSG
+config :lsg, :data_path, "priv"
+
+config :lsg, :icecast_poll_interval, 600_000
+
# Configures the endpoint
config :lsg, LSGWeb.Endpoint,
url: [host: "localhost"],
@@ -27,21 +31,29 @@ config :mime, :types, %{"text/event-stream" => ["sse"]}
config :lsg, :irc,
handlers: [
+ LSG.IRC.BaseHandler,
+ LSG.IRC.AdminHandler,
LSG.IRC.BroadcastHandler,
LSG.IRC.NpHandler,
LSG.IRC.TxtHandler,
+ LSG.IRC.KickRouletteHandler,
LSG.IRC.LastFmHandler,
LSG.IRC.YouTubeHandler,
LSG.IRC.DiceHandler,
- ],
- admins: [
- # Format is {nick, user, host}. :_ for any value.
+ LSG.IRC.CalcHandler,
]
-
-config :lsg, LSG.IRC.TxtHandler, directory: "priv/irc.txt/"
+ #admins: [
+ # # Format is {nick, user, host}. :_ for any value.
+ #]
+ #irc: [
+ # host: "irc.",
+ # port: 6667,
+ # nick: "`115ans",
+ # user: "115ans",
+ # name: "https://sys.115ans.net/irc"
+ #]
config :lsg, LSG.IRC.LastFmHandler,
- dets_path: 'priv/lastfm.dets',
api_key: "x",
api_secret: "x"
@@ -51,4 +63,3 @@ config :lsg, LSG.IRC.YouTubeHandler,
# 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"
-import_config "secret.exs"