My web site is hosted with the Aerobatic add-on for Bitbucket, and now I'd like to limit access to users with a username and password.
- Navigate to your web site's repository
- Either create a
package.json file or, in your existing
package.json, add the code block below (the
/protected path is optional). Make sure your
package.json is in the root level of your repository.
- Git push your code to Bitbucket
- In Bitbucket, navigate to the Aerobatic Hosting link in your repository
- Click environment variables and add an environment variable for the username and another for the password
Full documentation on basic authentication can be found on
4front.io which is the open-source project that Aerobatic is built on.