Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F51246
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
View Options
diff --git a/config/config.exs b/config/config.exs
index caeeb69..c5c5bd8 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -1,59 +1,59 @@
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# 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
config :phoenix, :json_library, Jason
# General application configuration
config :nola,
namespace: Nola
config :nola, :data_path, "priv"
config :nola, :brand,
name: "Nola",
- source_url: "https://phab.random.sh/source/Bot/"
+ source_url: "https://phab.random.sh/source/Nola/"
config :ex_aws,
region: "us-east-1",
host: "s3.wasabisys.com",
s3: [
host: "s3.wasabisys.com",
region: "us-east-1",
scheme: "https://"
]
# Configures the endpoint
config :nola, NolaWeb.Endpoint,
url: [host: "localhost"],
secret_key_base: "cAFb7x2p/D7PdV8/C6Os18uygoD0FVQh3efNEFc5+5L529q3dofZtZye/BG12MRZ",
render_errors: [view: NolaWeb.ErrorView, accepts: ~w(html json)],
server: true,
live_view: [signing_salt: "CHANGE_ME_FFS"],
pubsub: [name: Nola.PubSub,
adapter: Phoenix.PubSub.PG2]
config :mime, :types, %{"text/event-stream" => ["sse"]}
config :nola, Nola.IRC.LastFmHandler,
api_key: "x",
api_secret: "x"
config :nola, Nola.IRC.YouTubeHandler,
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.
import_config "#{Mix.env}.exs"
diff --git a/lib/nola/nola.ex b/lib/nola/nola.ex
index 0acb76e..18e5ddd 100644
--- a/lib/nola/nola.ex
+++ b/lib/nola/nola.ex
@@ -1,30 +1,30 @@
defmodule Nola do
@default_brand [
name: "Nola,
- source_url: "https://phab.random.sh/source/Bot/",
+ source_url: "https://phab.random.sh/source/Nola/",
owner: "Ashamed owner",
owner_email: "contact@my.nola.bot"
]
def env(), do: Application.get_env(:nola)
def env(key, default \\ nil), do: Application.get_env(:nola, key, default)
def brand(), do: env(:brand, @default_brand)
def brand(key), do: Keyword.get(brand(), key)
def name(), do: brand(:name)
def source_url(), do: brand(:source_url)
def data_path(suffix) do
Path.join(data_path(), suffix)
end
def data_path do
Application.get_env(:nola, :data_path)
end
def version do
Application.spec(:nola)[:vsn]
end
end
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Mar 14, 4:24 PM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33603
Default Alt Text
(2 KB)
Attached To
rNOLA Nola
Event Timeline
Log In to Comment