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

Ability to enable / disable basic auth using env vars #133

Closed
cancan101 opened this issue Apr 29, 2019 · 3 comments
Closed

Ability to enable / disable basic auth using env vars #133

cancan101 opened this issue Apr 29, 2019 · 3 comments

Comments

@cancan101
Copy link

cancan101 commented Apr 29, 2019

Repost from #45 (comment):
A way to enable / disable basic auth based on an env var.

@StevePavlin
Copy link

Struggled with this for a couple hours myself, I checked the spec file and saw that it can be conditionally toggled by creating/removing BASIC_AUTH_USERNAME

json["basic_auth"] = true unless ENV['BASIC_AUTH_USERNAME'].nil?

Might be nice to have this be a bit more clear in the docs.

@eprothro
Copy link

Just to clarify, no config is necessarry in the static.json. If the ENV contains a BASIC_AUTH_USERNAME and a hashed BASIC_AUTH_PASSWORD, basic auth will be enabled.

@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

4 participants