Prod packaging v1 (#23)

* Sets media directory for prod

* Improved logging; Added docker files for prod

* Improved fetching SECRET_KEY_BASE for selfhosted instances
This commit is contained in:
Kieran
2024-02-16 18:50:00 -08:00
committed by GitHub
parent b81c8d64b3
commit 1f56db01a5
13 changed files with 234 additions and 16 deletions
+2 -3
View File
@@ -13,13 +13,12 @@ config :pinchflat,
# Specifying backend data here makes mocking and local testing SUPER easy
yt_dlp_executable: System.find_executable("yt-dlp"),
yt_dlp_runner: Pinchflat.MediaClient.Backends.YtDlp.CommandRunner,
# TODO: figure this out
media_directory: :not_implemented,
media_directory: "/downloads",
metadata_directory: Path.join([System.tmp_dir!(), "pinchflat", "metadata"])
# Configures the endpoint
config :pinchflat, PinchflatWeb.Endpoint,
url: [host: "localhost"],
url: [host: "localhost", port: 8945],
adapter: Phoenix.Endpoint.Cowboy2Adapter,
render_errors: [
formats: [html: PinchflatWeb.ErrorHTML, json: PinchflatWeb.ErrorJSON],