import Config config :augie, AugieWeb.Endpoint, server: true, url: [host: "#{System.get_env("BALENA_DEVICE_UUID")}.balena-devices.com", port: 80], 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.*.*/", "http://127.0.0.1/" ] config :augie, Augie.Application, enable_mdns: true