mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 04:44:05 +02:00
lint
This commit is contained in:
@@ -35,7 +35,9 @@
|
|||||||
"/dev/nvme2"
|
"/dev/nvme2"
|
||||||
],
|
],
|
||||||
"environment": {
|
"environment": {
|
||||||
"FB_BASEURL": "/filebrowser"
|
"FB_BASEURL": "/filebrowser",
|
||||||
|
"PUID": "0",
|
||||||
|
"PGID": "0"
|
||||||
},
|
},
|
||||||
"ingress": true,
|
"ingress": true,
|
||||||
"ingress_port": 8099,
|
"ingress_port": 8099,
|
||||||
@@ -82,4 +84,3 @@
|
|||||||
"version": "2.20.1-2",
|
"version": "2.20.1-2",
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:8080]"
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:8080]"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,22 +15,15 @@ else
|
|||||||
KEYFILE=""
|
KEYFILE=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
####################
|
|
||||||
# SET UID GID v1.0 #
|
|
||||||
####################
|
|
||||||
bashio::log.info 'PUID GUID set to root'
|
|
||||||
PUID=0
|
|
||||||
PGID=0
|
|
||||||
|
|
||||||
#################
|
#################
|
||||||
# NGINX SETTING #
|
# NGINX SETTING #
|
||||||
#################
|
#################
|
||||||
|
|
||||||
declare port
|
#declare port
|
||||||
declare certfile
|
#declare certfile
|
||||||
declare ingress_interface
|
declare ingress_interface
|
||||||
declare ingress_port
|
declare ingress_port
|
||||||
declare keyfile
|
#declare keyfile
|
||||||
|
|
||||||
FB_BASEURL=$(bashio::addon.ingress_entry)
|
FB_BASEURL=$(bashio::addon.ingress_entry)
|
||||||
export FB_BASEURL
|
export FB_BASEURL
|
||||||
@@ -41,7 +34,7 @@ if bashio::config.true 'ssl'; then
|
|||||||
ADDON_PROTOCOL=https
|
ADDON_PROTOCOL=https
|
||||||
fi
|
fi
|
||||||
|
|
||||||
port=$(bashio::addon.port 80)
|
#port=$(bashio::addon.port 80)
|
||||||
ingress_port=$(bashio::addon.ingress_port)
|
ingress_port=$(bashio::addon.ingress_port)
|
||||||
ingress_interface=$(bashio::addon.ip_address)
|
ingress_interface=$(bashio::addon.ip_address)
|
||||||
sed -i "s|%%protocol%%|${ADDON_PROTOCOL}|g" /etc/nginx/servers/ingress.conf
|
sed -i "s|%%protocol%%|${ADDON_PROTOCOL}|g" /etc/nginx/servers/ingress.conf
|
||||||
@@ -83,7 +76,7 @@ fi
|
|||||||
|
|
||||||
bashio::log.info "Starting..."
|
bashio::log.info "Starting..."
|
||||||
|
|
||||||
/./filebrowser $CERTFILE $KEYFILE --root=$BASE_FOLDER --address=0.0.0.0 --database=/config/addons_config/filebrowser/filebrowser.dB $NOAUTH &
|
/./filebrowser "$CERTFILE" "$KEYFILE" --root="$BASE_FOLDER" --address=0.0.0.0 --database=/config/addons_config/filebrowser/filebrowser.dB "$NOAUTH" &
|
||||||
bashio::net.wait_for 8080 localhost 900 || true
|
bashio::net.wait_for 8080 localhost 900 || true
|
||||||
bashio::log.info "Started !"
|
bashio::log.info "Started !"
|
||||||
exec nginx
|
exec nginx
|
||||||
|
|||||||
Reference in New Issue
Block a user