Make timezone configurable
This commit is contained in:
+4
-1
@@ -15,7 +15,10 @@ config :music_library,
|
||||
ecto_repos: [MusicLibrary.Repo, MusicLibrary.ErrorRepo],
|
||||
generators: [timestamp_type: :utc_datetime, binary_id: true]
|
||||
|
||||
config :music_library, MusicLibraryWeb, login_password: "change me", api_token: "change me"
|
||||
config :music_library, MusicLibraryWeb,
|
||||
login_password: "change me",
|
||||
api_token: "change me",
|
||||
timezone: "Europe/London"
|
||||
|
||||
# Configures the endpoint
|
||||
config :music_library, MusicLibraryWeb.Endpoint,
|
||||
|
||||
@@ -32,6 +32,10 @@ if openai_key = System.get_env("OPENAI_KEY") do
|
||||
config :music_library, OpenAI, api_key: openai_key
|
||||
end
|
||||
|
||||
if timezone = System.get_env("TIMEZONE") do
|
||||
config :music_library, :timezone, timezone
|
||||
end
|
||||
|
||||
config :music_library, MusicLibrary.Repo,
|
||||
load_extensions: [
|
||||
MusicLibrary.Repo.extension_path("unicode")
|
||||
|
||||
Reference in New Issue
Block a user