Files
cgm-remote-monitor/docs/example-template.env

28 lines
1.1 KiB
Bash

CUSTOMCONNSTR_mongo=mongodb://....
CUSTOMCONNSTR_mongo_collection=
MONGO_PROFILE_COLLECTION=
API_SECRET=1234567890abc
HOSTNAME=0.0.0.0
ENABLE="devicestatus rawbg upbat careportal iob profile cage bage avg cob basal treatments sage boluscalc pump openaps iage speech"
SHOW_PLUGINS="rawbg-on careportal upbat iob profile cage cob basal avg treatments boluscalc pump openaps iage speech"
DISPLAY_UNITS="mmol"
TIME_FORMAT=24
ALARM_TYPES="predict"
LANGUAGE=en
INSECURE_USE_HTTP=true
PORT=1337
NODE_ENV=development
AUTH_FAIL_DELAY=50
# UUID handling for specific client patterns that send UUID as _id field
# Only affects cases where a UUID is sent as the _id field itself
# (e.g., Loop overrides, Trio CGM entries)
# Does NOT affect clients using separate identifier/uuid fields (AAPS, xDrip+, etc.)
#
# When true (default):
# - POST/PUT: UUID _id → extracted to 'identifier' field, new ObjectId assigned
# - GET/DELETE: UUID _id queries search by 'identifier' field
# When false:
# - POST/PUT: UUID _id is stripped, new ObjectId assigned (UUID identity not preserved)
# - GET/DELETE: UUID _id queries return empty results (no crash)
# UUID_HANDLING=true