This repository has been archived on 2024-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
augie/webapp/config/releases.exs

21 lines
680 B
Elixir

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")
],
secret_key_base: System.get_env("SECRET_KEY_BASE"),
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 :picam, camera: Picam.Camera