Files
ha-addons/ha-socks5-proxy/run.sh

14 lines
314 B
Bash

#!/usr/bin/with-contenv bashio
PROXY_USER=$(bashio::config 'proxy_user')
PROXY_PASSWORD=$(bashio::config 'proxy_password')
PROXY_PORT=$(bashio::config 'proxy_port')
export PROXY_USER
export PROXY_PASSWORD
export PROXY_PORT
bashio::log.info "Starting SOCKS5 Proxy on port ${PROXY_PORT}..."
exec /app/bin/server