Had to swap to minio to let it act as a cdn. Working file uploads.

This commit is contained in:
2026-03-31 13:12:11 -04:00
parent db57ac843b
commit 028d83b9cc
6 changed files with 17 additions and 12 deletions

View File

@@ -6,8 +6,14 @@ defmodule MixerWeb.PageController do
end
def index(conn, _params) do
asset_host = Application.get_env(:waffle, :asset_host, "http://localhost:3900")
bucket = Application.get_env(:waffle, :bucket, "mixer-bucket")
conn
|> put_root_layout(html: {MixerWeb.Layouts, :spa_root})
|> render(:index, current_user: conn.assigns[:current_user])
|> render(:index,
current_user: conn.assigns[:current_user],
media_host: "#{asset_host}/#{bucket}"
)
end
end