phx update

This commit is contained in:
2023-11-07 08:52:09 +01:00
parent 8ad54eda1c
commit b2439d7251
974 changed files with 4538 additions and 1120 deletions

View File

@ -7,7 +7,8 @@ defmodule HomepageWeb.Endpoint do
@session_options [
store: :cookie,
key: "_homepage_key",
signing_salt: "HBldD12f"
signing_salt: "gxQ6oTQt",
same_site: "Lax"
]
socket "/live", Phoenix.LiveView.Socket, websocket: [connect_info: [session: @session_options]]
@ -19,8 +20,10 @@ defmodule HomepageWeb.Endpoint do
plug Plug.Static,
at: "/",
from: :homepage,
gzip: false,
only: ~w(assets fonts images favicon.ico robots.txt)
headers: [{"access-control-allow-origin", "*"}],
gzip: true,
only_matching: HomepageWeb.static_digested(),
only: HomepageWeb.static_paths()
# Code reloading can be explicitly enabled under the
# :code_reloader configuration of your endpoint.