Rename AUTH_PASSWORD -> LOGIN_PASSWORD
This commit is contained in:
@@ -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
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user