Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Nightscout #6

Merged
merged 15 commits into from
Nov 23, 2021
Merged

Updating Nightscout #6

merged 15 commits into from
Nov 23, 2021

Conversation

ewingate
Copy link
Owner

No description provided.

sulkaharo and others added 15 commits February 23, 2021 14:54
* Change packaging to include full moment.js locale library to fix date processing issues for some users
* Create docker-compose.yml file for easy deployment

* Restore invalid password, to force change
* New translations en.json (Hungarian)

* New translations en.json (Hungarian)

* New translations en.json (Czech)

* New translations en.json (Hungarian)

* New translations en.json (Hungarian)

* New translations en.json (Hungarian)

* New translations en.json (Hungarian)

* New translations en.json (Hungarian)

* New translations en.json (Hungarian)

* New translations en.json (Russian)

* New translations en.json (Romanian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Tamil)

* New translations en.json (Portuguese)

* New translations en.json (Slovenian)

* New translations en.json (Slovenian)

* New translations en.json (Slovenian)

* New translations en.json (Slovenian)

* New translations en.json (Slovenian)

* New translations en.json (Slovenian)

* New translations en.json (Chinese Simplified)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (French)

* New translations en.json (Turkish)

* New translations en.json (Turkish)

* New translations en.json (Chinese Simplified)

* New translations en.json (Chinese Simplified)
Use npm update --save share2nightscout-bridge to update package-lock.json and
package.json.  This should assist in updates intended to help unify Dexcom Account management.
…bridge-update

bump share2nightscout-bridge version
This change allows each route to express policies for interpreting and parsing
the request body.  Before this change uploads to entries or treatments api
would error if they were larger than 100Kb due to the preference being set for
the whole server.  This change removes the global preference in favor of
allowing each route to choose it's own request size limit.

We also refactor usage of body-parser to be more consistent throughout the code
base.  Most routes can use jsonParser, rawPraser, and urlencodedParser provided
by the common wares component.  Anything doing something else should be called
out as such.  For example, treatments, activity, and entries allow uploads up
to 50Mb.  Other v1 endpoints are using the common configuration set to 1Mb.
respect per route body-parser configuration
Many proxies (NGINX included) will generate a list of IPs in v4 and
v6 formats.  The forwarded-for library is a well-maintained library for
express that sanitizes, checks, and validates trusted proxy IPs.  This helps
eliminate XSS or other attempts to inject invalid material through the
x-forwarded-for header.

Co-authored-by: Sulka Haro <[email protected]>
Add wares to v2 to support request parsing
This patch is intended to make everything match for version 14.2.4.
@ewingate ewingate merged commit 2a5d444 into ewingate:master Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants