summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2022-12-17 14:11:05 +0000
committerJordan Bracco <href@random.sh>2022-12-20 19:29:41 +0100
commitcb94651acc0e62142d5c98ad3bb243ad1ba55a5c (patch)
tree1cec80ef2f14bf7e94d8f159e82f2b51d299247e
parentNola rename, cont. pt. 4. Refs T77. (diff)
Nola rename, cont. pt. 5. Refs T77. Configs.
find config -type f | xargs sed -i '' 's/LSG/Nola/g' find config -type f | xargs sed -i '' 's/lsg/nola/g' BREAKING CHANGE: Config keys switch from `:lsg` to `:nola`
-rw-r--r--config/config.exs18
-rw-r--r--config/dev.exs10
-rw-r--r--config/prod.exs2
-rw-r--r--config/test.exs2
4 files changed, 16 insertions, 16 deletions
diff --git a/config/config.exs b/config/config.exs
index e1bbf1f..caeeb69 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -13,12 +13,12 @@ config :logger, :console,
config :phoenix, :json_library, Jason
# General application configuration
-config :lsg,
- namespace: LSG
+config :nola,
+ namespace: Nola
-config :lsg, :data_path, "priv"
+config :nola, :data_path, "priv"
-config :lsg, :brand,
+config :nola, :brand,
name: "Nola",
source_url: "https://phab.random.sh/source/Bot/"
@@ -32,22 +32,22 @@ config :ex_aws,
]
# Configures the endpoint
-config :lsg, LSGWeb.Endpoint,
+config :nola, NolaWeb.Endpoint,
url: [host: "localhost"],
secret_key_base: "cAFb7x2p/D7PdV8/C6Os18uygoD0FVQh3efNEFc5+5L529q3dofZtZye/BG12MRZ",
- render_errors: [view: LSGWeb.ErrorView, accepts: ~w(html json)],
+ render_errors: [view: NolaWeb.ErrorView, accepts: ~w(html json)],
server: true,
live_view: [signing_salt: "CHANGE_ME_FFS"],
- pubsub: [name: LSG.PubSub,
+ pubsub: [name: Nola.PubSub,
adapter: Phoenix.PubSub.PG2]
config :mime, :types, %{"text/event-stream" => ["sse"]}
-config :lsg, LSG.IRC.LastFmHandler,
+config :nola, Nola.IRC.LastFmHandler,
api_key: "x",
api_secret: "x"
-config :lsg, LSG.IRC.YouTubeHandler,
+config :nola, Nola.IRC.YouTubeHandler,
api_key: "x",
invidious: "yewtu.be"
diff --git a/config/dev.exs b/config/dev.exs
index 25e7123..a2b97f8 100644
--- a/config/dev.exs
+++ b/config/dev.exs
@@ -6,7 +6,7 @@ use Mix.Config
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
-config :lsg, LSGWeb.Endpoint,
+config :nola, NolaWeb.Endpoint,
http: [port: 4012, ip: {0,0,0,0}],
debug_errors: true,
code_reloader: true,
@@ -29,14 +29,14 @@ config :lsg, LSGWeb.Endpoint,
# different ports.
# Watch static and templates for browser reloading.
-config :lsg, LSGWeb.Endpoint,
+config :nola, NolaWeb.Endpoint,
live_reload: [
patterns: [
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
~r{priv/gettext/.*(po)$},
- ~r{lib/lsg_web/controllers/.*(ex)$},
- ~r{lib/lsg_web/views/.*(ex)$},
- ~r{lib/lsg_web/templates/.*(eex)$}
+ ~r{lib/nola_web/controllers/.*(ex)$},
+ ~r{lib/nola_web/views/.*(ex)$},
+ ~r{lib/nola_web/templates/.*(eex)$}
]
],
watchers: [
diff --git a/config/prod.exs b/config/prod.exs
index e5d92db..2acf04f 100644
--- a/config/prod.exs
+++ b/config/prod.exs
@@ -1,6 +1,6 @@
use Mix.Config
-config :lsg, LSGWeb.Endpoint,
+config :nola, NolaWeb.Endpoint,
http: [ip: {0,0,0,0}, port: 4000]
config :logger_json, :backend,
diff --git a/config/test.exs b/config/test.exs
index da7e605..618cbd5 100644
--- a/config/test.exs
+++ b/config/test.exs
@@ -2,7 +2,7 @@ use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
-config :lsg, LSGWeb.Endpoint,
+config :nola, NolaWeb.Endpoint,
http: [port: 4001],
server: false