mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-09 17:15:57 +02:00
Update 03-nginx_ssl.sh
This commit is contained in:
@@ -2,8 +2,6 @@
|
|||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
qbittorrent_protocol="http"
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# SSL CONFIG #
|
# SSL CONFIG #
|
||||||
################
|
################
|
||||||
@@ -40,7 +38,13 @@ if bashio::config.true 'ssl'; then
|
|||||||
|
|
||||||
# Set nginx protocol
|
# Set nginx protocol
|
||||||
qbittorrent_protocol=https
|
qbittorrent_protocol=https
|
||||||
|
else
|
||||||
|
# Disable ssl in script
|
||||||
|
sed -i "1a ENABLE_SSL=no" /etc/cont-init.d/04-qbittorrent-setup.sh
|
||||||
|
# Prepare ingress
|
||||||
|
qbittorrent_protocol="http"
|
||||||
|
# Correct qBittorrent.conf
|
||||||
|
sed -i "/HTTPS/d" /config/qBittorrent/config/qBittorrent.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#################
|
#################
|
||||||
|
|||||||
Reference in New Issue
Block a user