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

Allow FORCE_HTTPS to be specified as an environment variable #75

Closed
wants to merge 2 commits into from

Conversation

jordpo
Copy link

@jordpo jordpo commented May 12, 2017

This allows to specify FORCE_HTTPS as a config environment variable similar to what you could do in this buildpack https://github.com/tonycoco/heroku-buildpack-ember-cli/blob/e4aed2b98bde656c6921120fb87ec53040195590/config/nginx.conf.erb#L60.

@@ -44,6 +44,7 @@ def initialize(json_file)

json["clean_urls"] ||= DEFAULT[:clean_urls]
json["https_only"] ||= DEFAULT[:https_only]
json["https_only"] ||= ENV["FORCE_HTTPS"].present? && ENV["FORCE_HTTPS"] === "true"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to fall back to the default?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default is still applied in the line above.

@PoslinskiNet
Copy link

PoslinskiNet commented Sep 19, 2017

@hone when we can expect merge of this :)?

@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 PR out since we won't be making further changes to this buildpack.

@edmorley edmorley closed this 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

Successfully merging this pull request may close these issues.

4 participants