Skip to content

Latest commit

 

History

History
50 lines (29 loc) · 1.72 KB

Accessing-mothership.rst

File metadata and controls

50 lines (29 loc) · 1.72 KB

Accessing Mothership

cURL

To perform authenticated requests with TLS using curl (which is default when starting Mothership), add the -u flag to your curl commands:

$ curl -u <username>:<password> https://localhost:8080/images -k

CLI

To enable the CLI commands to send your credentials when making requests, you can either add the --username and --password flags to your CLI commands, or perform ./mothership init to have the client prompt you for your credentials and store them in a config file for future CLI commands.

$ ./<mothership-binary> images --username <username> --password <password>

Website

When you have come this far, or if you want to connect to a public Mothership that is already running, you can open your browser and go to the Mothership's website.

If you are running a Mothership locally, you will find your Mothership's website by going to https://localhost:8080 if you have started your Mothership with TLS enabled.

If you have started your Mothership without TLS, you will find the website at http://localhost:8080.

Here, if the Mothership was started with authentication enabled, you will see a Login-page:

_static/images/login-button.png

When clicking on this, a popup will appear, asking you to fill in your username and password:

_static/images/login.png

This username and password must match one of the entries in the previously created mothership/config_files/.htpasswd file.

If no authentication is required, you will be sent straight to the Instances page:

_static/images/instances-start.png