neiam
/diogramos
diogramos
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
tweaks
03a17f0 · gmorell · 2026-04-27 23:42
Files changed
modified
config/runtime.exs
+5
−0
@@ -85,6 +85,11 @@ if config_env() == :prod do
| 85 | 85 | |
| 86 | 86 | config :diogramos, DiogramosWeb.Endpoint, |
| 87 | 87 | url: [host: host, port: 443, scheme: "https"], |
| 88 | + # Accept both http and https origins for the configured host. The | |
| 89 | + # `//host` form matches any scheme/port. Without this the LiveView | |
| 90 | + # WebSocket upgrade is rejected silently when the proxy forwards a | |
| 91 | + # subtly-different Origin header (no Logger event, nothing in Sentry). | |
| 92 | + check_origin: ["//#{host}", "https://#{host}"], | |
| 88 | 93 | http: [ |
| 89 | 94 | # Enable IPv6 and bind on all interfaces. |
| 90 | 95 | # Set it to {0, 0, 0, 0, 0, 0, 0, 1} for local network only access. |
Parents: 4def633