setup-ttrss.sh: Automatically enable secure image proxy (af_zz_imgproxy) plugin if SSL/TLS is enabled.
This commit is contained in:
parent
26882927db
commit
95c7208ba5
@ -106,8 +106,21 @@ setup_ttrss()
|
||||
# Patch URL path.
|
||||
sed -i -e 's@htt.*/@'"${TTRSS_SELF_URL}"'@g' ${TTRSS_PATH}/config.php
|
||||
|
||||
# Enable additional system plugins: api_newsplus.
|
||||
sed -i -e "s/.*define('PLUGINS'.*/define('PLUGINS', 'api_newsplus, auth_internal, note, updater');/g" ${TTRSS_PATH}/config.php
|
||||
# Enable additional system plugins.
|
||||
if [ -z ${TTRSS_PLUGINS} ]; then
|
||||
|
||||
# api_newsplus (API for News+ Android App).
|
||||
TTRSS_PLUGINS=api_newsplus
|
||||
|
||||
# Only if SSL/TLS is enabled: af_zz_imgproxy (Loads insecure images via built-in proxy).
|
||||
if [ "$TTRSS_PROTO" = "https" ]; then
|
||||
TTRSS_PLUGINS=${TTRSS_PLUGINS},af_zz_imgproxy
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Setup: Additional plugins: $TTRSS_PLUGINS"
|
||||
|
||||
sed -i -e "s/.*define('PLUGINS'.*/define('PLUGINS', '$TTRSS_PLUGINS, auth_internal, note, updater');/g" ${TTRSS_PATH}/config.php
|
||||
}
|
||||
|
||||
setup_db()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user