Fix origin checking for local network and remote access.

This commit is contained in:
James Harton 2019-12-02 18:05:29 +13:00
parent 0d35752b46
commit 6247744f70

View file

@ -6,6 +6,14 @@ config :augie, AugieWeb.Endpoint,
http: [:inet, port: 80],
live_view: [
signing_salt: System.get_env("LIVE_VIEW_SIGNING_SALT")
],
check_origin: [
# If public device URL is enabled in balena cloud
"https://#{System.get_env("BALENA_DEVICE_UUID")}.balena-devices.com",
# Using local network mdns.
"http://#{System.get_env("HOSTNAME")}.local/",
# Directly by IP address on the local LAN.
"http://192.168.*.*/"
]
# config :logger, level: :debug