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 04748ba commit 3943adb
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions charm/docs/how-to/manage-domains.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,13 @@
To manage the list of domains a user is allowed to request changes to, the following actions are available

## Allowing domains
Run
`juju run --wait=5s httprequest-lego-provider/0 allow-domains username=example domains="example.domain.com,example2.domain.com"`
to add domains to the list of allowed domains.
To add domains to the list of allowed domains, run `juju run --wait=5s httprequest-lego-provider/0 allow-domains username=example domains="example.domain.com,example2.domain.com"`.

## Revoking domains
Run
`juju run --wait=5s httprequest-lego-provider/0 revoke-domains username=example domains="example.domain.com,example2.domain.com"`
to remove domains from the list of allowed domains.
To remove domains from the list of allowed domains, run `juju run --wait=5s httprequest-lego-provider/0 revoke-domains username=example domains="example.domain.com,example2.domain.com"`.

## 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`
and the list of domains will be returned as in
To query the list of allowed domains for a user, run `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
Expand Down

0 comments on commit 3943adb

Please sign in to comment.