summaryrefslogtreecommitdiff
path: root/config/config.exs
diff options
context:
space:
mode:
Diffstat (limited to 'config/config.exs')
-rw-r--r--config/config.exs43
1 files changed, 39 insertions, 4 deletions
diff --git a/config/config.exs b/config/config.exs
index bf52838..6468a16 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -1,6 +1,7 @@
import Config
config :logger, level: :debug
+
config :logger, :console,
format: "$date $time [$level] $metadata$message\n",
metadata: :all
@@ -35,8 +36,7 @@ config :nola, NolaWeb.Endpoint,
render_errors: [view: NolaWeb.ErrorView, accepts: ~w(html json)],
server: true,
live_view: [signing_salt: "CHANGE_ME_FFS"],
- pubsub: [name: NolaWeb.PubSub,
- adapter: Phoenix.PubSub.PG2]
+ pubsub: [name: NolaWeb.PubSub, adapter: Phoenix.PubSub.PG2]
config :mime, :types, %{"text/event-stream" => ["sse"]}
@@ -49,8 +49,43 @@ config :nola, :youtube,
invidious: "yewtu.be"
config :mnesia,
- dir: '.mnesia/#{Mix.env}/#{node()}'
+ dir: '.mnesia/#{Mix.env()}/#{node()}'
+
+config :nola, Nola.Plugins.Link,
+ proxy: nil,
+ scraper: [
+ service: "usescraper",
+ config: [
+ api_key: "xxxx",
+ http_options: [
+ timeout: :timer.seconds(120),
+ recv_timeout: :timer.seconds(120)
+ ]
+ ]
+ ],
+ store: [
+ ttl: :timer.hours(24),
+ inhibit: :timer.hours(16),
+ interval: :timer.minutes(30)
+ ],
+ handlers: [
+ "Nola.Plugins.Link.Image": [],
+ "Nola.Plugins.Link.HTML": [],
+ "Nola.Plugins.Link.PDF": [],
+ "Nola.Plugins.Link.YouTube": [
+ invidious: true
+ ],
+ "Nola.Plugins.Link.Twitter": [
+ expand_quoted: true
+ ],
+ "Nola.Plugins.Link.Imgur": [],
+ "Nola.Plugins.Link.Github": [],
+ "Nola.Plugins.Link.Reddit": [],
+ "Nola.Plugins.Link.ImgDebridLink": []
+ ]
+
+config :floki, :html_parser, Floki.HTMLParser.FastHtml
# 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 "#{Mix.env()}.exs"