Skip to content

Commit

Permalink
Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
arturo-seijas committed Mar 6, 2024
1 parent 91abce4 commit 04748ba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion charm/docs/how-to/manage-domains.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@ Run

## Listing domains
To query the list of allowed domains for a user, run
`juju run --wait=5s httprequest-lego-provider/0 list-domains username=example"`.
`juju run --wait=5s httprequest-lego-provider/0 list-domains username=example`
and the list of domains will be returned as in
```bash
result: |
_acme-challenge.example.domain.com, _acme-challenge.example2.domain.com
```
6 changes: 5 additions & 1 deletion charm/docs/how-to/manage-users.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# How to manage users

Users will be leveraged to determine if a request is authorised to manage a specific domain. To add a new user simply run
`juju run --wait=5s httprequest-lego-provider/0 create-user username=example-user`. The action will generate and output a password.
`juju run --wait=5s httprequest-lego-provider/0 create-user username=example-user`. The action will generate and output a password:
```bash
result: |
Created or updated "example" with password "**REDACTED**"
```

If the action is rerun, a new password will be generated.

0 comments on commit 04748ba

Please sign in to comment.