fix: auth password for production
All checks were successful
Code Quality / Code Quality (Elixir 1.15.7 OTP 26.2) (push) Successful in 1m59s
Docker Build and Publish / docker-build (push) Successful in 59s

- set password with runtime env variable
This commit is contained in:
Schuwi
2025-09-21 12:13:20 +02:00
parent 6548a06b43
commit c444597632
3 changed files with 4 additions and 3 deletions

View File

@@ -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,

View File

@@ -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

View File

@@ -26,6 +26,7 @@ services:
PHX_SERVER: "true"
PORT: "4000"
UPLOADS_DIR: "/data/uploads"
AUTH_PASSWORD: "changeme!"
depends_on:
db:
condition: service_healthy