i’ve been playing around with add ons and the ingress. my issue really comes around as i try to create a new influxdb add on using the latest.
No errors that i can see in any logs. only hint is from the 400 response.
i’m pretty new to the forum, please let me know if i’m missing anything.
the new influx has all of the old parts rolled into one. so no more flux/chronograf needed.
do i need to add nginx and proxy the influx endpoint?
this is what i see after trying to open the web ui
here is my Dockerfile:
ARG BUILD_FROM
FROM $BUILD_FROM
ARG BUILD_ARCH
RUN \
ARCH="" \
&& if [ "${BUILD_ARCH}" = "aarch64" ]; then ARCH="arm64"; \
elif [ "${BUILD_ARCH}" = "amd64" ]; then ARCH="amd64"; \
else exit 1; \
fi \
&& wget -O influxdb.tar.gz https://dl.influxdata.com/influxdb/releases/influxdb2-2.3.0-linux-${ARCh}.tar.gz \
&& mkdir influxdb \
&& tar xzf influxdb.tar.gz -C influxdb --strip-components 1
WORKDIR /data
COPY run.sh /
RUN chmod a+x /run.sh
CMD ["/run.sh"]
config.yaml:
name: "influx test"
description: "test influx"
version: "1.1.1"
slug: "influx_test"
init: false
map:
- ssl
ingress: true
arch:
- aarch64
- amd64
options:
certfile: le-cert.pem
keyfile: le-key.pem
schema:
certfile: str
keyfile: str
run.sh:
#!/usr/bin/with-contenv bashio
certfile=$(bashio::config 'certfile')
keyfile=$(bashio::config 'keyfile')
if [ ! -f /ssl/$certfile ]; then
echo "Cannot find certificate file $certfile"
exit 1
fi
if [ ! -f /ssl/$keyfile ]; then
echo "Cannot find certificate key file $keyfile"
exit 1
fi
echo "Starting Influxdb..."
exec /influxdb/influxd \
--reporting-disabled \
--tls-cert="/ssl/$certfile" \
--tls-key="ssl/$keyfile" \
--log-level=debug \
--http-bind-address=:8099