timoschlueter / nightscout-librelink-up

Script written in TypeScript that uploads CGM readings from LibreLink Up to Nightscout.
MIT License
192 stars 246 forks source link

Add config options for http/https and TCP-Port #68

Closed nightwatcher74 closed 1 year ago

nightwatcher74 commented 1 year ago

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:

networks: traefik-net: external: true nightscout-net:

timoschlueter commented 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 :)