[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:
@@ -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") ||
|
||||
|
||||
Reference in New Issue
Block a user