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,
|
config :components_elixir,
|
||||||
ecto_repos: [ComponentsElixir.Repo],
|
ecto_repos: [ComponentsElixir.Repo],
|
||||||
generators: [timestamp_type: :utc_datetime],
|
generators: [timestamp_type: :utc_datetime]
|
||||||
auth_password: System.get_env("AUTH_PASSWORD", "changeme")
|
|
||||||
|
|
||||||
# Configures the endpoint
|
# Configures the endpoint
|
||||||
config :components_elixir, ComponentsElixirWeb.Endpoint,
|
config :components_elixir, ComponentsElixirWeb.Endpoint,
|
||||||
|
|||||||
@@ -2,7 +2,8 @@ import Config
|
|||||||
|
|
||||||
# Runtime configuration for uploads directory
|
# Runtime configuration for uploads directory
|
||||||
config :components_elixir,
|
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
|
# config/runtime.exs is executed for all environments, including
|
||||||
# during releases. It is executed after compilation and before the
|
# during releases. It is executed after compilation and before the
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ services:
|
|||||||
PHX_SERVER: "true"
|
PHX_SERVER: "true"
|
||||||
PORT: "4000"
|
PORT: "4000"
|
||||||
UPLOADS_DIR: "/data/uploads"
|
UPLOADS_DIR: "/data/uploads"
|
||||||
|
AUTH_PASSWORD: "changeme!"
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|||||||
Reference in New Issue
Block a user