diff --git a/README.md b/README.md index 78fa38bf..c9f77917 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,10 @@ The application requires the following environment variables: - `LAST_FM_API_KEY` (secret): the Last.fm API key used to fetch the Scrobble Activity - `OPENAI_KEY` (secret): the OpenAI API key used for specific features like populating genres, etc. +In production, the application also requires: + +- `LOGIN_PASSWORD` (secret): the password used for accessing the application. + The application is setup to use [direnv](https://direnv.net/). The `.envrc` file loads two other files: `.envrc.local` file for configuration diff --git a/config/runtime.exs b/config/runtime.exs index d37b954b..203f4c87 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -64,9 +64,9 @@ if config_env() == :prod do """ login_password = - System.get_env("AUTH_PASSWORD") || + System.get_env("LOGIN_PASSWORD") || raise """ - environment variable AUTH_PASSWORD is missing. + environment variable LOGIN_PASSWORD is missing. """ host = System.get_env("PHX_HOST") || "example.com"