summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorhref <href@random.sh>2021-09-03 14:39:34 +0200
committerhref <href@random.sh>2021-09-03 14:39:34 +0200
commit11aa2f28bb15fd0dc0f4e1e037ed4875d934106e (patch)
tree21b1d4a5e3966565c485d0614b4fb24cfa822612 /config
parentpuppet: stay connected for 12 hours (diff)
chat_live improvements
Diffstat (limited to 'config')
-rw-r--r--config/config.exs41
1 files changed, 5 insertions, 36 deletions
diff --git a/config/config.exs b/config/config.exs
index 9a3633e..8a1faa6 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -10,13 +10,16 @@ config :logger, :console,
format: "$date $time [$level$levelpad] $metadata$message\n",
metadata: :all
+config :phoenix, :json_library, Jason
+
# General application configuration
config :lsg,
namespace: LSG
config :lsg, :data_path, "priv"
-config :lsg, :icecast_poll_interval, 600_000
+config :lsg, :irc,
+ name: "ircbot"
config :ex_aws,
region: "us-east-1",
@@ -33,46 +36,12 @@ config :lsg, LSGWeb.Endpoint,
secret_key_base: "cAFb7x2p/D7PdV8/C6Os18uygoD0FVQh3efNEFc5+5L529q3dofZtZye/BG12MRZ",
render_errors: [view: LSGWeb.ErrorView, accepts: ~w(html json)],
server: true,
+ live_view: [signing_salt: "CHANGE_ME_FFS"],
pubsub: [name: LSG.PubSub,
adapter: Phoenix.PubSub.PG2]
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: [
- LSG.IRC.AdminHandler,
- #LSG.IRC.BroadcastHandler,
- #LSG.IRC.NpHandler,
- ],
- plugins: [
- LSG.IRC.BasePlugin,
- LSG.IRC.TxtPlugin,
- LSG.IRC.CalcPlugin,
- LSG.IRC.DicePlugin,
- LSG.IRC.YouTubePlugin,
- LSG.IRC.WikipediaPlugin,
- LSG.IRC.KickRoulettePlugin,
- LSG.IRC.AlcoolismePlugin,
- LSG.IRC.QuatreCentVingtPlugin,
- LSG.IRC.LastFmPlugin,
- LSG.IRC.LinkPlugin,
- LSG.IRC.OutlinePlugin,
- LSG.IRC.StocksPlugin
- ]
- #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,
api_key: "x",
api_secret: "x"