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.
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.{ "_virtualApp": { "router": [ { "module": "basic-auth", "path": "/protected", "options": { "username": "env:BASIC_AUTH_USERNAME", "password": "env:BASIC_AUTH_PASSWORD" } }, { "module": "webpage" } ] } } |
Full documentation on basic authentication can be found on 4front.io
which is the open-source project that Aerobatic is built on.
http://4front.io/docs/plugins/basic-auth.html
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|