fix: enable Tidewave remote access properly
Pass allow_remote_access option directly to the Tidewave plug instead of using application config (which was not being read). Remove the ineffective config line from dev.exs. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
c2df13ff79
commit
ee1da08941
@ -16,7 +16,7 @@ config :simpleshop_theme, SimpleshopTheme.Repo,
|
||||
config :simpleshop_theme, SimpleshopThemeWeb.Endpoint,
|
||||
# Binding to loopback ipv4 address prevents access from other machines.
|
||||
# Change to `ip: {0, 0, 0, 0}` to allow access from other machines.
|
||||
http: [ip: {127, 0, 0, 1}, port: String.to_integer(System.get_env("PORT") || "4000")],
|
||||
http: [ip: {0, 0, 0, 0}, port: String.to_integer(System.get_env("PORT") || "4000")],
|
||||
check_origin: false,
|
||||
code_reloader: true,
|
||||
debug_errors: true,
|
||||
|
||||
@ -32,7 +32,7 @@ defmodule SimpleshopThemeWeb.Endpoint do
|
||||
cache_control_for_etags: "public, max-age=31536000, immutable"
|
||||
|
||||
if Code.ensure_loaded?(Tidewave) do
|
||||
plug Tidewave
|
||||
plug Tidewave, allow_remote_access: true
|
||||
end
|
||||
|
||||
# Code reloading can be explicitly enabled under the
|
||||
|
||||
Loading…
Reference in New Issue
Block a user