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

Not able to use existing .htpasswd file for basic auth #205

Closed
AutumnSun1996 opened this issue Mar 29, 2021 · 1 comment
Closed

Not able to use existing .htpasswd file for basic auth #205

AutumnSun1996 opened this issue Mar 29, 2021 · 1 comment

Comments

@AutumnSun1996
Copy link

It says will use .htpasswd file present in the app directory if basic_auth is set without env BASIC_AUTH_USERNAME and BASIC_AUTH_PASSWORD in the docs.

This will generate .htpasswd using environment variables BASIC_AUTH_USERNAME and BASIC_AUTH_PASSWORD if they are present. Otherwise it will use a standard .htpasswd file present in the app directory.

I want to use my own .htpasswd file (since there are already some user info in it), but it didn't work as expected.

It seems the .htpasswd file in app root dir is never uploaded to heroku dyno.

How can I use an existing .htpasswd file?

@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