[Bugfix] Fix basic auth in deployed apps (#52)

* Renamed auth env vars and updated them to work in prod env

* Updated basic auth parsing to ignore empty strings
This commit is contained in:
Kieran
2024-03-04 13:29:26 -08:00
committed by GitHub
parent 5c9933b684
commit 254054c0c1
5 changed files with 22 additions and 5 deletions
+4
View File
@@ -21,6 +21,10 @@ if System.get_env("PHX_SERVER") do
config :pinchflat, PinchflatWeb.Endpoint, server: true
end
config :pinchflat,
basic_auth_username: System.get_env("BASIC_AUTH_USERNAME"),
basic_auth_password: System.get_env("BASIC_AUTH_PASSWORD")
if config_env() == :prod do
config_path =
System.get_env("CONFIG_PATH") ||