fix: auth password for production
- set password with runtime env variable
This commit is contained in:
@@ -9,8 +9,7 @@ import Config
|
||||
|
||||
config :components_elixir,
|
||||
ecto_repos: [ComponentsElixir.Repo],
|
||||
generators: [timestamp_type: :utc_datetime],
|
||||
auth_password: System.get_env("AUTH_PASSWORD", "changeme")
|
||||
generators: [timestamp_type: :utc_datetime]
|
||||
|
||||
# Configures the endpoint
|
||||
config :components_elixir, ComponentsElixirWeb.Endpoint,
|
||||
|
||||
@@ -2,7 +2,8 @@ import Config
|
||||
|
||||
# Runtime configuration for uploads directory
|
||||
config :components_elixir,
|
||||
uploads_dir: System.get_env("UPLOADS_DIR", "./uploads")
|
||||
uploads_dir: System.get_env("UPLOADS_DIR", "./uploads"),
|
||||
auth_password: System.get_env("AUTH_PASSWORD", "changeme")
|
||||
|
||||
# config/runtime.exs is executed for all environments, including
|
||||
# during releases. It is executed after compilation and before the
|
||||
|
||||
Reference in New Issue
Block a user