mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-19 14:30:11 +02:00
Compare commits
11 Commits
3afbbf471d
...
copilot/fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
427c09245c | ||
|
|
43b1b7c916 | ||
|
|
f59266ad57 | ||
|
|
3b643c5613 | ||
|
|
a247c0c782 | ||
|
|
cf584b9c07 | ||
|
|
58a042996c | ||
|
|
9a0c7cea5f | ||
|
|
15d14ca9b0 | ||
|
|
098f04781b | ||
|
|
575ff2264f |
@@ -1,3 +1,5 @@
|
|||||||
|
## 0.139.3 (11-05-2026)
|
||||||
|
- Minor bugs fixed
|
||||||
## 0.138.0 (24-04-2026)
|
## 0.138.0 (24-04-2026)
|
||||||
- Minor bugs fixed
|
- Minor bugs fixed
|
||||||
## 0.137.0 (13-04-2026)
|
## 0.137.0 (13-04-2026)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: "Manyfold"
|
name: "Manyfold"
|
||||||
slug: manyfold
|
slug: manyfold
|
||||||
description: "Manyfold 3D model manager as a Home Assistant add-on, using the upstream image with configurable library/index paths."
|
description: "Manyfold 3D model manager as a Home Assistant add-on, using the upstream image with configurable library/index paths."
|
||||||
version: "0.138.0"
|
version: "0.139.3"
|
||||||
url: "https://github.com/alexbelgium/hassio-addons/tree/master/manyfold"
|
url: "https://github.com/alexbelgium/hassio-addons/tree/master/manyfold"
|
||||||
image: ghcr.io/alexbelgium/manyfold-{arch}
|
image: ghcr.io/alexbelgium/manyfold-{arch}
|
||||||
arch:
|
arch:
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
## 5.2.0-7 (12-05-2026)
|
||||||
|
- Fix OpenVPN stale-process crash loop on S6 service restart: kill any existing OpenVPN daemon and clean up stale interface/routing state before re-establishing the tunnel (same class of fix as WireGuard 5.2.0-3)
|
||||||
|
- Fix broken routing rule cleanup: `_routing_del` was deleting rules with `from all`/`to all` wildcard which never matched the specific `from IP`/`to IP` rules added by `_routing_add`, leaving stale routing rules after VPN teardown and causing DNS resolution failures when OpenVPN tried to reconnect
|
||||||
|
|
||||||
|
## 5.2.0-6 (12-05-2026)
|
||||||
|
- Minor bugs fixed
|
||||||
|
|
||||||
|
## 5.2.0-3 (2026-05-12)
|
||||||
|
- Fix WireGuard "RTNETLINK answers: File exists" crash loop: clean up stale interface and routing rules before re-establishing the tunnel on S6 service restart
|
||||||
|
|
||||||
## 5.2.0-2 (2026-05-10)
|
## 5.2.0-2 (2026-05-10)
|
||||||
- Fix startup loop on aarch64: drop s6-notifyoncheck wrapper so s6 supervises qbittorrent-nox directly (LSIO arm64 image has no notification-fd, causing EBADF restart loop)
|
- Fix startup loop on aarch64: drop s6-notifyoncheck wrapper so s6 supervises qbittorrent-nox directly (LSIO arm64 image has no notification-fd, causing EBADF restart loop)
|
||||||
|
|||||||
@@ -143,4 +143,4 @@ schema:
|
|||||||
slug: qbittorrent
|
slug: qbittorrent
|
||||||
udev: true
|
udev: true
|
||||||
url: https://github.com/alexbelgium/hassio-addons
|
url: https://github.com/alexbelgium/hassio-addons
|
||||||
version: "5.2.0-2"
|
version: "5.2.0-7"
|
||||||
|
|||||||
@@ -192,13 +192,36 @@ _routing_add() {
|
|||||||
|
|
||||||
_routing_del() {
|
_routing_del() {
|
||||||
bashio::log.info "Removing routing rules for VPN interface ${config["Interface"]}..."
|
bashio::log.info "Removing routing rules for VPN interface ${config["Interface"]}..."
|
||||||
|
local table="${config["Table"]}"
|
||||||
|
local line prio rest
|
||||||
|
|
||||||
while _cmd "ip -4 rule del priority 1 from all table ${config["Table"]} 2>/dev/null"; do :; done
|
# Remove all IPv4 policy rules pointing to our custom routing table.
|
||||||
while _cmd "ip -4 rule del priority 1 to all table ${config["Table"]} 2>/dev/null"; do :; done
|
# We must parse `ip rule list` and delete each matching rule individually,
|
||||||
while _cmd "ip -4 route del default dev ${config["Interface"]} table ${config["Table"]} 2>/dev/null"; do :; done
|
# because the rules were added with specific from/to selectors (e.g.
|
||||||
while _cmd "ip -6 rule del priority 1 from all table ${config["Table"]} 2>/dev/null"; do :; done
|
# "from 10.8.0.2" or "to 8.8.8.8") — not the "from all" wildcard that
|
||||||
while _cmd "ip -6 rule del priority 1 to all table ${config["Table"]} 2>/dev/null"; do :; done
|
# the old code tried to delete, which never matched anything.
|
||||||
while _cmd "ip -6 route del default dev ${config["Interface"]} table ${config["Table"]} 2>/dev/null"; do :; done
|
while IFS= read -r line; do
|
||||||
|
[[ "${line}" =~ ^[[:space:]]*([0-9]+):[[:space:]]+(.*lookup[[:space:]]+${table}.*)$ ]] || continue
|
||||||
|
prio="${BASH_REMATCH[1]}"
|
||||||
|
rest="${BASH_REMATCH[2]}"
|
||||||
|
# shellcheck disable=SC2206 — word-split is intentional: ip needs individual tokens
|
||||||
|
local -a rule_args=( ${rest} )
|
||||||
|
ip -4 rule del prio "${prio}" "${rule_args[@]}" 2>/dev/null || true
|
||||||
|
done < <(ip -4 rule list 2>/dev/null)
|
||||||
|
|
||||||
|
# Same for IPv6
|
||||||
|
while IFS= read -r line; do
|
||||||
|
[[ "${line}" =~ ^[[:space:]]*([0-9]+):[[:space:]]+(.*lookup[[:space:]]+${table}.*)$ ]] || continue
|
||||||
|
prio="${BASH_REMATCH[1]}"
|
||||||
|
rest="${BASH_REMATCH[2]}"
|
||||||
|
# shellcheck disable=SC2206 — word-split is intentional: ip needs individual tokens
|
||||||
|
local -a rule_args=( ${rest} )
|
||||||
|
ip -6 rule del prio "${prio}" "${rule_args[@]}" 2>/dev/null || true
|
||||||
|
done < <(ip -6 rule list 2>/dev/null)
|
||||||
|
|
||||||
|
# Flush all routes in our custom table
|
||||||
|
ip -4 route flush table "${table}" 2>/dev/null || true
|
||||||
|
ip -6 route flush table "${table}" 2>/dev/null || true
|
||||||
}
|
}
|
||||||
|
|
||||||
# --- Firewall Specific Functions ---
|
# --- Firewall Specific Functions ---
|
||||||
@@ -279,6 +302,16 @@ _wireguard_up() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Clean up any leftover state from a previous run (e.g., after an S6 service restart).
|
||||||
|
# Without this, `ip link add` and `ip rule add` fail with "RTNETLINK answers: File exists"
|
||||||
|
# when the svc-qbittorrent service is restarted while the WireGuard interface is still up.
|
||||||
|
if ip link show "${config["Interface"]}" > /dev/null 2>&1; then
|
||||||
|
bashio::log.info "WireGuard interface ${config["Interface"]} already exists. Cleaning up before re-establishing connection."
|
||||||
|
ip link set "${config["Interface"]}" down 2>/dev/null || true
|
||||||
|
ip link del "${config["Interface"]}" 2>/dev/null || true
|
||||||
|
fi
|
||||||
|
_routing_del 2>/dev/null || true
|
||||||
|
|
||||||
_cmd "ip link add ${config["Interface"]} type wireguard" || return 1
|
_cmd "ip link add ${config["Interface"]} type wireguard" || return 1
|
||||||
|
|
||||||
mapfile -d ',' -t local_ips < <(echo "${config["Address"]}" | tr -d ' ')
|
mapfile -d ',' -t local_ips < <(echo "${config["Address"]}" | tr -d ' ')
|
||||||
@@ -490,6 +523,22 @@ _openvpn_up() {
|
|||||||
bashio::log.warning "This routing table will be used for traffic from the VPN interface and to the configured DNS servers."
|
bashio::log.warning "This routing table will be used for traffic from the VPN interface and to the configured DNS servers."
|
||||||
bashio::log.warning "Qbittorrent bittorrent client shall be set to use the VPN interface ${config["Interface"]} only."
|
bashio::log.warning "Qbittorrent bittorrent client shall be set to use the VPN interface ${config["Interface"]} only."
|
||||||
|
|
||||||
|
# Clean up any leftover state from a previous run (e.g., after an S6 service restart).
|
||||||
|
# Without this, a second OpenVPN daemon starts while the first is still running, leaving
|
||||||
|
# stale routing rules that cause DNS resolution failures during reconnect — the same class
|
||||||
|
# of bug that was fixed for WireGuard in 5.2.0-3.
|
||||||
|
if pgrep -f "openvpn --config ${config["ConfigFile"]}" > /dev/null 2>&1; then
|
||||||
|
bashio::log.info "Previous OpenVPN process found. Stopping it before re-establishing connection."
|
||||||
|
pkill -TERM -f "openvpn --config ${config["ConfigFile"]}" 2>/dev/null || true
|
||||||
|
sleep 2
|
||||||
|
fi
|
||||||
|
if ip link show "${config["Interface"]}" > /dev/null 2>&1; then
|
||||||
|
bashio::log.info "OpenVPN interface ${config["Interface"]} already exists. Cleaning up before re-establishing connection."
|
||||||
|
ip link set "${config["Interface"]}" down 2>/dev/null || true
|
||||||
|
fi
|
||||||
|
_routing_del 2>/dev/null || true
|
||||||
|
_resolvconf "reset" 2>/dev/null || true
|
||||||
|
|
||||||
# Register this script as OpenVPN up/down handlers to manage routing
|
# Register this script as OpenVPN up/down handlers to manage routing
|
||||||
echo '#!/bin/bash' > ${config["PostUpScript"]}
|
echo '#!/bin/bash' > ${config["PostUpScript"]}
|
||||||
echo "${config["MySelf"]} openvpn postup" >> ${config["PostUpScript"]}
|
echo "${config["MySelf"]} openvpn postup" >> ${config["PostUpScript"]}
|
||||||
|
|||||||
@@ -1,11 +1,4 @@
|
|||||||
|
|
||||||
## 12.0.18-5 (2026-05-11)
|
|
||||||
- Fix file uploads and downloads through a reverse proxy (e.g. Nginx Proxy Manager) by:
|
|
||||||
- Writing `SEAFILE_SERVER_HOSTNAME` and `SEAFILE_SERVER_PROTOCOL` to `seafile.env` so Seafile knows its external URL
|
|
||||||
- Setting `host = 0.0.0.0` in the `[fileserver]` section of `seafile.conf` so the fileserver binds to all interfaces
|
|
||||||
- Adding `CSRF_TRUSTED_ORIGINS` to `seahub_settings.py` to prevent Django CSRF rejections on HTTPS setups
|
|
||||||
- Making `FILE_SERVER_ROOT` optional (`str?`) so it can be left empty when the reverse proxy handles `/seafhttp` routing
|
|
||||||
|
|
||||||
## 12.0.18-4 (2026-05-10)
|
## 12.0.18-4 (2026-05-10)
|
||||||
- Fix admin account creation by writing `conf/admin.txt` and seeding `seafile.env` with `SEAFILE_ADMIN_EMAIL`/`SEAFILE_ADMIN_PASSWORD` so the upstream `check_init_admin.py` no longer falls back to an interactive prompt (#2685)
|
- Fix admin account creation by writing `conf/admin.txt` and seeding `seafile.env` with `SEAFILE_ADMIN_EMAIL`/`SEAFILE_ADMIN_PASSWORD` so the upstream `check_init_admin.py` no longer falls back to an interactive prompt (#2685)
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ name: Seafile
|
|||||||
options:
|
options:
|
||||||
env_vars: []
|
env_vars: []
|
||||||
CONFIG_LOCATION: /config/addons_config/seafile/config.yaml
|
CONFIG_LOCATION: /config/addons_config/seafile/config.yaml
|
||||||
FILE_SERVER_ROOT: ""
|
FILE_SERVER_ROOT: http://homeassistant.local:8082
|
||||||
PGID: 1000
|
PGID: 1000
|
||||||
PORT: "8082"
|
PORT: "8082"
|
||||||
PUID: 1000
|
PUID: 1000
|
||||||
@@ -107,7 +107,7 @@ schema:
|
|||||||
- name: match(^[A-Za-z0-9_]+$)
|
- name: match(^[A-Za-z0-9_]+$)
|
||||||
value: str?
|
value: str?
|
||||||
CONFIG_LOCATION: str?
|
CONFIG_LOCATION: str?
|
||||||
FILE_SERVER_ROOT: str?
|
FILE_SERVER_ROOT: str
|
||||||
PGID: int
|
PGID: int
|
||||||
PORT: str?
|
PORT: str?
|
||||||
PUID: int
|
PUID: int
|
||||||
@@ -128,5 +128,5 @@ services:
|
|||||||
slug: seafile
|
slug: seafile
|
||||||
udev: true
|
udev: true
|
||||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/seafile
|
url: https://github.com/alexbelgium/hassio-addons/tree/master/seafile
|
||||||
version: "12.0.18-5"
|
version: "12.0.18-4"
|
||||||
webui: http://[HOST]:[PORT:8000]
|
webui: http://[HOST]:[PORT:8000]
|
||||||
|
|||||||
@@ -154,8 +154,10 @@ bashio::log.info "Configuring Seafile URLs"
|
|||||||
SERVER_IP_CONFIG=$(bashio::config 'SERVER_IP')
|
SERVER_IP_CONFIG=$(bashio::config 'SERVER_IP')
|
||||||
SERVICE_URL_CONFIG=$(bashio::config 'url')
|
SERVICE_URL_CONFIG=$(bashio::config 'url')
|
||||||
FILE_SERVER_ROOT_CONFIG=$(bashio::config 'FILE_SERVER_ROOT')
|
FILE_SERVER_ROOT_CONFIG=$(bashio::config 'FILE_SERVER_ROOT')
|
||||||
|
FILE_PORT_CONFIG=$(bashio::config 'PORT')
|
||||||
|
|
||||||
DEFAULT_HOST=${SERVER_IP_CONFIG:-homeassistant.local}
|
DEFAULT_HOST=${SERVER_IP_CONFIG:-homeassistant.local}
|
||||||
|
DEFAULT_FILE_PORT=${FILE_PORT_CONFIG:-8082}
|
||||||
|
|
||||||
normalize_url() {
|
normalize_url() {
|
||||||
local raw_url="${1%/}"
|
local raw_url="${1%/}"
|
||||||
@@ -174,20 +176,7 @@ normalize_url() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SERVICE_URL_VALUE=$(normalize_url "${SERVICE_URL_CONFIG:-${DEFAULT_HOST}:8000}" "http")
|
SERVICE_URL_VALUE=$(normalize_url "${SERVICE_URL_CONFIG:-${DEFAULT_HOST}:8000}" "http")
|
||||||
|
FILE_SERVER_ROOT_VALUE=$(normalize_url "${FILE_SERVER_ROOT_CONFIG:-${DEFAULT_HOST}:${DEFAULT_FILE_PORT}}" "http")
|
||||||
# FILE_SERVER_ROOT is optional; when empty Seafile derives it from SERVICE_URL
|
|
||||||
# (clients then reach the fileserver via the same reverse proxy path /seafhttp).
|
|
||||||
if [[ -n "${FILE_SERVER_ROOT_CONFIG}" && "${FILE_SERVER_ROOT_CONFIG}" != "null" ]]; then
|
|
||||||
FILE_SERVER_ROOT_VALUE=$(normalize_url "${FILE_SERVER_ROOT_CONFIG}" "http")
|
|
||||||
else
|
|
||||||
FILE_SERVER_ROOT_VALUE=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Extract hostname and protocol for seafile.env
|
|
||||||
SERVER_PROTOCOL="${SERVICE_URL_VALUE%%://*}"
|
|
||||||
SERVER_HOSTNAME="${SERVICE_URL_VALUE#*://}"
|
|
||||||
SERVER_HOSTNAME="${SERVER_HOSTNAME%%/*}"
|
|
||||||
SERVER_HOSTNAME="${SERVER_HOSTNAME%%:*}"
|
|
||||||
|
|
||||||
SEAHUB_CONF_DIRS=()
|
SEAHUB_CONF_DIRS=()
|
||||||
if [[ -d "${DATA_LOCATION}/conf" || ! -d "${DATA_LOCATION}/seafile/conf" ]]; then
|
if [[ -d "${DATA_LOCATION}/conf" || ! -d "${DATA_LOCATION}/seafile/conf" ]]; then
|
||||||
@@ -207,103 +196,28 @@ for conf_dir in "${SEAHUB_CONF_DIRS[@]}"; do
|
|||||||
|
|
||||||
sed -i '/^SERVICE_URL *=/d' "${SEAHUB_SETTINGS_FILE}"
|
sed -i '/^SERVICE_URL *=/d' "${SEAHUB_SETTINGS_FILE}"
|
||||||
sed -i '/^FILE_SERVER_ROOT *=/d' "${SEAHUB_SETTINGS_FILE}"
|
sed -i '/^FILE_SERVER_ROOT *=/d' "${SEAHUB_SETTINGS_FILE}"
|
||||||
sed -i '/^CSRF_TRUSTED_ORIGINS *=/d' "${SEAHUB_SETTINGS_FILE}"
|
|
||||||
|
|
||||||
echo "SERVICE_URL = \"${SERVICE_URL_VALUE}\"" >> "${SEAHUB_SETTINGS_FILE}"
|
{
|
||||||
if [[ -n "${FILE_SERVER_ROOT_VALUE}" ]]; then
|
echo "SERVICE_URL = \"${SERVICE_URL_VALUE}\""
|
||||||
echo "FILE_SERVER_ROOT = \"${FILE_SERVER_ROOT_VALUE}\"" >> "${SEAHUB_SETTINGS_FILE}"
|
echo "FILE_SERVER_ROOT = \"${FILE_SERVER_ROOT_VALUE}\""
|
||||||
fi
|
} >> "${SEAHUB_SETTINGS_FILE}"
|
||||||
echo "CSRF_TRUSTED_ORIGINS = [\"${SERVICE_URL_VALUE}\"]" >> "${SEAHUB_SETTINGS_FILE}"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
bashio::log.info "SERVICE_URL set to ${SERVICE_URL_VALUE}"
|
bashio::log.info "SERVICE_URL set to ${SERVICE_URL_VALUE}"
|
||||||
if [[ -n "${FILE_SERVER_ROOT_VALUE}" ]]; then
|
bashio::log.info "FILE_SERVER_ROOT set to ${FILE_SERVER_ROOT_VALUE}"
|
||||||
bashio::log.info "FILE_SERVER_ROOT set to ${FILE_SERVER_ROOT_VALUE}"
|
|
||||||
else
|
|
||||||
bashio::log.info "FILE_SERVER_ROOT not set; Seafile will derive it from SERVICE_URL"
|
|
||||||
fi
|
|
||||||
bashio::log.info "CSRF_TRUSTED_ORIGINS set to [\"${SERVICE_URL_VALUE}\"]"
|
|
||||||
|
|
||||||
#############################################
|
|
||||||
# Configure seafile.env (hostname/protocol) #
|
|
||||||
#############################################
|
|
||||||
|
|
||||||
bashio::log.info "Configuring seafile.env (SEAFILE_SERVER_HOSTNAME=${SERVER_HOSTNAME}, SEAFILE_SERVER_PROTOCOL=${SERVER_PROTOCOL})"
|
|
||||||
|
|
||||||
for conf_dir in "${SEAHUB_CONF_DIRS[@]}"; do
|
|
||||||
SEAFILE_ENV_FILE="${conf_dir}/seafile.env"
|
|
||||||
touch "${SEAFILE_ENV_FILE}"
|
|
||||||
chown seafile:seafile "${SEAFILE_ENV_FILE}" 2>/dev/null || true
|
|
||||||
chmod 600 "${SEAFILE_ENV_FILE}"
|
|
||||||
sed -i '/^SEAFILE_SERVER_HOSTNAME=/d' "${SEAFILE_ENV_FILE}"
|
|
||||||
sed -i '/^SEAFILE_SERVER_PROTOCOL=/d' "${SEAFILE_ENV_FILE}"
|
|
||||||
{
|
|
||||||
printf 'SEAFILE_SERVER_HOSTNAME=%s\n' "${SERVER_HOSTNAME}"
|
|
||||||
printf 'SEAFILE_SERVER_PROTOCOL=%s\n' "${SERVER_PROTOCOL}"
|
|
||||||
} >> "${SEAFILE_ENV_FILE}"
|
|
||||||
done
|
|
||||||
|
|
||||||
#############################################
|
|
||||||
# Configure fileserver binding (0.0.0.0) #
|
|
||||||
#############################################
|
|
||||||
|
|
||||||
bashio::log.info "Setting fileserver host to 0.0.0.0 in seafile.conf"
|
|
||||||
|
|
||||||
for conf_dir in "${SEAHUB_CONF_DIRS[@]}"; do
|
|
||||||
SEAFILE_CONF="${conf_dir}/seafile.conf"
|
|
||||||
mkdir -p "${conf_dir}"
|
|
||||||
if [[ -f "${SEAFILE_CONF}" ]]; then
|
|
||||||
if grep -q '^\[fileserver\]' "${SEAFILE_CONF}"; then
|
|
||||||
sed -i '/^\[fileserver\]/,/^\[/{/^host *=/d}' "${SEAFILE_CONF}"
|
|
||||||
sed -i '/^\[fileserver\]/a host = 0.0.0.0' "${SEAFILE_CONF}"
|
|
||||||
else
|
|
||||||
printf '\n[fileserver]\nhost = 0.0.0.0\n' >> "${SEAFILE_CONF}"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
printf '[fileserver]\nhost = 0.0.0.0\n' > "${SEAFILE_CONF}"
|
|
||||||
chown seafile:seafile "${SEAFILE_CONF}" 2>/dev/null || true
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# The upstream write_config.sh hardcodes /seafhttp in FILE_SERVER_ROOT and
|
# The upstream write_config.sh hardcodes /seafhttp in FILE_SERVER_ROOT and
|
||||||
# overwrites our settings on first run. Create a helper that re-applies the
|
# overwrites our settings on first run. Create a helper that re-applies the
|
||||||
# addon's URL configuration right before Seafile services start, so it always
|
# addon's URL configuration right before Seafile services start, so it always
|
||||||
# takes effect regardless of what the upstream init/setup scripts wrote.
|
# takes effect regardless of what the upstream init/setup scripts wrote.
|
||||||
|
|
||||||
# Pre-compute the conditional FILE_SERVER_ROOT line for the generated script.
|
|
||||||
_fsr_apply_line="# FILE_SERVER_ROOT not set; Seafile will derive it from SERVICE_URL"
|
|
||||||
if [[ -n "${FILE_SERVER_ROOT_VALUE}" ]]; then
|
|
||||||
_fsr_apply_line=" echo 'FILE_SERVER_ROOT = \"${FILE_SERVER_ROOT_VALUE}\"' >> \"\$_CONF\""
|
|
||||||
fi
|
|
||||||
|
|
||||||
cat > /home/seafile/apply_addon_urls.sh << URLEOF
|
cat > /home/seafile/apply_addon_urls.sh << URLEOF
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
for _CONF in "${DATA_LOCATION}/conf/seahub_settings.py" "${DATA_LOCATION}/seafile/conf/seahub_settings.py"; do
|
for _CONF in "${DATA_LOCATION}/conf/seahub_settings.py" "${DATA_LOCATION}/seafile/conf/seahub_settings.py"; do
|
||||||
if [ -f "\$_CONF" ]; then
|
if [ -f "\$_CONF" ]; then
|
||||||
sed -i '/^SERVICE_URL *=/d' "\$_CONF"
|
sed -i '/^SERVICE_URL *=/d' "\$_CONF"
|
||||||
sed -i '/^FILE_SERVER_ROOT *=/d' "\$_CONF"
|
sed -i '/^FILE_SERVER_ROOT *=/d' "\$_CONF"
|
||||||
sed -i '/^CSRF_TRUSTED_ORIGINS *=/d' "\$_CONF"
|
|
||||||
echo 'SERVICE_URL = "${SERVICE_URL_VALUE}"' >> "\$_CONF"
|
echo 'SERVICE_URL = "${SERVICE_URL_VALUE}"' >> "\$_CONF"
|
||||||
${_fsr_apply_line}
|
echo 'FILE_SERVER_ROOT = "${FILE_SERVER_ROOT_VALUE}"' >> "\$_CONF"
|
||||||
echo 'CSRF_TRUSTED_ORIGINS = ["${SERVICE_URL_VALUE}"]' >> "\$_CONF"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
for _ENV in "${DATA_LOCATION}/conf/seafile.env" "${DATA_LOCATION}/seafile/conf/seafile.env"; do
|
|
||||||
if [ -f "\$_ENV" ]; then
|
|
||||||
sed -i '/^SEAFILE_SERVER_HOSTNAME=/d' "\$_ENV"
|
|
||||||
sed -i '/^SEAFILE_SERVER_PROTOCOL=/d' "\$_ENV"
|
|
||||||
printf 'SEAFILE_SERVER_HOSTNAME=${SERVER_HOSTNAME}\n' >> "\$_ENV"
|
|
||||||
printf 'SEAFILE_SERVER_PROTOCOL=${SERVER_PROTOCOL}\n' >> "\$_ENV"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
for _SCONF in "${DATA_LOCATION}/conf/seafile.conf" "${DATA_LOCATION}/seafile/conf/seafile.conf"; do
|
|
||||||
if [ -f "\$_SCONF" ]; then
|
|
||||||
if grep -q '^\[fileserver\]' "\$_SCONF"; then
|
|
||||||
sed -i '/^\[fileserver\]/,/^\[/{/^host *=/d}' "\$_SCONF"
|
|
||||||
sed -i '/^\[fileserver\]/a host = 0.0.0.0' "\$_SCONF"
|
|
||||||
else
|
|
||||||
printf '\n[fileserver]\nhost = 0.0.0.0\n' >> "\$_SCONF"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
URLEOF
|
URLEOF
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
## ⚠ Open Issue : [🐛 Cloudcommander New Directory (opened 2026-03-19)](https://github.com/alexbelgium/hassio-addons/issues/2594) by [@pgitsov](https://github.com/pgitsov)
|
## ⚠ Open Issue : [🐛 Cloudcommander New Directory (opened 2026-03-19)](https://github.com/alexbelgium/hassio-addons/issues/2594) by [@pgitsov](https://github.com/pgitsov)
|
||||||
|
## ⚠ Open Issue : [🐛 [Qbittorent] qbittorrent-nox (opened 2026-05-09)](https://github.com/alexbelgium/hassio-addons/issues/2690) by [@BrainDeLook](https://github.com/BrainDeLook)
|
||||||
# Hass.io Add-ons: Tor with bridges
|
# Hass.io Add-ons: Tor with bridges
|
||||||
|
|
||||||
[![Donate][donation-badge]](https://www.buymeacoffee.com/alexbelgium)
|
[![Donate][donation-badge]](https://www.buymeacoffee.com/alexbelgium)
|
||||||
|
|||||||
Reference in New Issue
Block a user