Closed nightwatcher74 closed 1 year ago
I added an option to disable HTTPS in version 1.9.0
. Set the environment variable NIGHTSCOUT_DISABLE_HTTPS
to true
in order to disable HTTPS for Nightscout.
As for the port: You can simply append the port to the NIGHTSCOUT_URL
(e.g. localhost:8080)
Thank you very much for bringing this up. Its a very useful addition :)
Hi Timo,
I use you great tool to uplad my data into nightscout which is running on my own docker server and a swarm stack file/compose. In this case librelink-up and nightscout talk together via a docker (swarm) network directly and i have no https.
Would it be possible to make http/https and the port configurable?
When it will be interesting, heare isma stack file:
version: "3.7"
services: mongo: image: mongo:4.4 container_name: mongo domainname: mongo.localdomain.intra hostname: mongo environment: MONGO_INITDB_ROOT_USERNAME: admin MONGO_INITDB_ROOT_PASSWORD:
networks:
/srv/docker/mongo/data:/data/db
nightscout: image: nightscout/cgm-remote-monitor:latest container_name: nightscout domainname: nightscout.localdomain.intra hostname: nightscout restart: always environment: NODE_ENV: production TZ: Europe/Berlin API_SECRET:
MONGO_CONNECTION: mongodb://admin:@mongo
INSECURE_USE_HTTP: 'true'
TIME_FORMAT: 24h
LANGUAGE: de
ENABLE: careportal rawbg iob
AUTH_DEFAULT_ROLES: denied
HOSTNAME: 0.0.0.0 # required because of IP Service binding
labels:
HTTP to HTTPS redirect
nightscout.localdomain.intra
,nightscout
,nightscout.publicdomain.de
)- traefik.http.routers.nightscout-http.middlewares=nightscout-http # if https redirect shout be used
- traefik.http.middlewares.nightscout-http.redirectscheme.scheme=https
HTTPS
nightscout.publicdomain.de
)mongo
nightscout-libre-link: image: timoschlueter/nightscout-librelink-up container_name: nightscout-libre-link hostname: nightscout-libre-link restart: always environment: LINK_UP_USERNAME: "" LINK_UP_PASSWORD: "" LINK_UP_TIME_INTERVAL: "5" LINK_UP_REGION: "DE" NIGHTSCOUT_URL: "nightscout" NIGHTSCOUT_API_TOKEN: ""
LOG_LEVEL: "debug"
networks:
networks: traefik-net: external: true nightscout-net: