mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-18 10:42:11 +01:00
21 lines
624 B
Plaintext
21 lines
624 B
Plaintext
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
set -euo pipefail
|
|
|
|
# ==============================================================================
|
|
# Home Assistant Add-on: NetBird Server
|
|
# Runs the NetBird Relay (optional)
|
|
# ==============================================================================
|
|
|
|
LOG_LEVEL="info"
|
|
RELAY_EXPOSED_ADDRESS=""
|
|
RELAY_AUTH_SECRET=""
|
|
|
|
bashio::log.info "Starting NetBird Relay..."
|
|
exec /usr/local/bin/netbird-relay \
|
|
--listen-address ":33080" \
|
|
--exposed-address "$RELAY_EXPOSED_ADDRESS" \
|
|
--auth-secret "$RELAY_AUTH_SECRET" \
|
|
--log-level "$LOG_LEVEL" \
|
|
--log-file console
|