mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-08 06:50:58 +02:00
Ingress fix
https://github.com/alexbelgium/hassio-addons/issues/588 https://github.com/alexbelgium/hassio-addons/issues/589
This commit is contained in:
@@ -13,6 +13,4 @@ ingress_entry=$(bashio::addon.ingress_entry)
|
||||
sed -i "s/%%port%%/${ingress_port}/g" /etc/nginx/servers/ingress.conf
|
||||
sed -i "s/%%interface%%/${ingress_interface}/g" /etc/nginx/servers/ingress.conf
|
||||
sed -i "s|%%ingress_entry%%|${ingress_entry}|g" /etc/nginx/servers/ingress.conf
|
||||
|
||||
# Avoid error message
|
||||
grep -rnl "PhotoPrism has been updated…" /opt/photoprism | xargs sed -i "s|PhotoPrism has been updated…|Please click cancel|g"
|
||||
sed -i "s|%%ingress_entry%%|${ingress_entry}|g" /etc/nginx/servers/ssl.conf
|
||||
|
||||
@@ -57,6 +57,13 @@ case $(bashio::config 'DB_TYPE') in
|
||||
;;
|
||||
esac
|
||||
|
||||
############
|
||||
# Base url #
|
||||
############
|
||||
|
||||
PHOTOPRISM_SITE_URL="$(bashio::addon.ingress_entry)/"
|
||||
export PHOTOPRISM_SITE_URL
|
||||
|
||||
##############
|
||||
# LAUNCH APP #
|
||||
##############
|
||||
|
||||
Reference in New Issue
Block a user