Added optional basic auth (#31)

This commit is contained in:
Kieran
2024-02-21 17:37:25 -08:00
committed by GitHub
parent e3f1b409b9
commit 3efc533fb7
3 changed files with 65 additions and 1 deletions
+5 -1
View File
@@ -14,7 +14,11 @@ config :pinchflat,
yt_dlp_executable: System.find_executable("yt-dlp"),
yt_dlp_runner: Pinchflat.MediaClient.Backends.YtDlp.CommandRunner,
media_directory: "/downloads",
metadata_directory: Path.join([System.tmp_dir!(), "pinchflat", "metadata"])
metadata_directory: Path.join([System.tmp_dir!(), "pinchflat", "metadata"]),
# Setting AUTH_USERNAME and AUTH_PASSWORD implies you want to use basic auth.
# If either is unset, basic auth will not be used.
basic_auth_username: System.get_env("AUTH_USERNAME"),
basic_auth_password: System.get_env("AUTH_PASSWORD")
# Configures the endpoint
config :pinchflat, PinchflatWeb.Endpoint,