-
Notifications
You must be signed in to change notification settings - Fork 71.9k
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
fix INSECURE_USE_HTTP for people with nginx or apache #4104
Conversation
mhhh, but the BG values from xDrip comes in (the timestamp on last BG update was updated) and: And the current Glucose Value (BG) is showing on nightscout. |
@@ -14,7 +14,7 @@ function create(env, ctx) { | |||
var appInfo = env.name + ' ' + env.version; | |||
app.set('title', appInfo); | |||
app.enable('trust proxy'); // Allows req.secure test on heroku https connections. | |||
if (!env.settings.isEnabled('insecureUseHttp')) { | |||
if (!process.env.INSECURE_USE_HTTP=='true') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is case sensitive, boolean checks should at least do case insensitive comparison
Here's my logs, you can see where I updated, and where I applied the above fix:
|
@viq @zehnBE @CareGo: I think the 405 come from the removal of svgdata. Can you try to see what is being uploaded? Workaround is to use @sulkaharo : can you also have a look. I will be at work in a training all day. |
xDrip sends sensor glucose json data via
|
Yeah, I just finally managed to convince |
#4106 may potentially contain a fix. At least uploads work for me now, thogh xdrip seems to complain about downloads now? |
reported by @viq
see https://gitter.im/nightscout/public?at=5bff2215e25cc274055be745