mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-11-21 21:44:02 +03:00
Co-authored-by: Kai Chappel <kaichappel@users.noreply.github.com>
17 lines
517 B
Bash
17 lines
517 B
Bash
export APP_OPENREADER_PORT="3391"
|
|
|
|
local_ips=$(hostname --all-ip-addresses 2> /dev/null) || local_ips=""
|
|
export APP_OPENREADER_LOCAL_IPS="${local_ips}"
|
|
|
|
# Build http:// origins with the app_proxy port for Better Auth trusted origins.
|
|
ips_with_port=$(for ip in $local_ips; do
|
|
# Wrap IPv6 addresses in []
|
|
if [[ "$ip" == *:* ]]; then
|
|
echo -n "http://[$ip]:$APP_OPENREADER_PORT,"
|
|
else
|
|
echo -n "http://$ip:$APP_OPENREADER_PORT,"
|
|
fi
|
|
done | sed 's/,$//')
|
|
|
|
export APP_OPENREADER_LOCAL_URLS="${ips_with_port}"
|