Skip to content

Commit

Permalink
ci(docker.secret): add frontend configs
Browse files Browse the repository at this point in the history
  • Loading branch information
unenglishable committed Dec 19, 2023
1 parent c00be59 commit 2c49543
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/docker.secret.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@ config :epochtalk_server, EpochtalkServer.Repo,
database: System.get_env("DATABASE_NAME"),
hostname: System.get_env("DATABASE_HOST"),
pool_size: 10

config :epochtalk_server,
ecto_repos: [EpochtalkServer.Repo],
frontend_config: %{
frontend_url: System.get_env("FRONTEND_URL") || "http://localhost:8000",
backend_url: System.get_env("BACKEND_URL") || "http://localhost:4000",
ga_key: System.get_env("GA_KEY") || "UA-XXXXX-Y",
emailer: %{ses_mode: System.get_env("EMAILER_SES_MODE") || false, options: %{from_address: System.get_env("EMAILER_FROM_ADDRESS") || "[email protected]"}},
images: %{s3_mode: System.get_env("IMAGES_S3_MODE") || false, options: %{local_host: System.get_env("IMAGES_LOCAL_HOST") || "http://localhost:4000"}}
}

0 comments on commit 2c49543

Please sign in to comment.