Rename AUTH_PASSWORD -> LOGIN_PASSWORD

This commit is contained in:
Claudio Ortolina
2024-12-21 15:01:14 +00:00
parent 53e8d88b6a
commit 75506b6e1c
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -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
+2 -2
View File
@@ -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"