Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

How can I inject a boolean HTTPS_ONLY env value into the respective JSON value? #224

Closed
JaffParker opened this issue Nov 30, 2021 · 2 comments

Comments

@JaffParker
Copy link

I need to have HTTPS enabled for my prod server, but disabled on staging. So I tried this:

"https_only": "${HTTPS_ONLY}",

But it doesn't seem to work, which makes sense, since it becomes "https_only": "false", which is a truthy value. So there seems to be no way to inject a boolean value into this.

Am I missing a solution?

@JaffParker
Copy link
Author

So after some research it seems indeed impossible, since it just injects a string.

So this is more of a feature request now lol. Is it possible to add a parser to boolean fields?

@edmorley
Copy link
Member

edmorley commented Jun 9, 2022

Hi

This buildpack is now deprecated and we are recommending people move the more actively maintained heroku-buildpack-nginx. For migration advice see here.

As such, I'm closing this issue out since we won't be making further changes to this buildpack.

@edmorley edmorley closed this as not planned Won't fix, can't repro, duplicate, stale Jun 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants