forked from TrueCloudLab/lego
gcloud: add CLI example (#1808)
This commit is contained in:
parent
0122506c23
commit
db0257c6f8
2 changed files with 18 additions and 4 deletions
|
@ -23,9 +23,16 @@ Configuration for [Google Cloud](https://cloud.google.com).
|
||||||
- Since: v0.3.0
|
- Since: v0.3.0
|
||||||
|
|
||||||
|
|
||||||
{{% notice note %}}
|
Here is an example bash command using the Google Cloud provider:
|
||||||
_Please contribute by adding a CLI example._
|
|
||||||
{{% /notice %}}
|
```bash
|
||||||
|
GCE_PROJECT="gc-project-id" GCE_SERVICE_ACCOUNT_FILE="/path/to/svc/account/file.json" lego \
|
||||||
|
--email="abc@email.com" \
|
||||||
|
--domains="example.com" \
|
||||||
|
--dns="gcloud" \
|
||||||
|
--path="${HOME}/.lego" \
|
||||||
|
run
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,14 @@ URL = "https://cloud.google.com"
|
||||||
Code = "gcloud"
|
Code = "gcloud"
|
||||||
Since = "v0.3.0"
|
Since = "v0.3.0"
|
||||||
|
|
||||||
Example = ''''''
|
Example = '''
|
||||||
|
GCE_PROJECT="gc-project-id" GCE_SERVICE_ACCOUNT_FILE="/path/to/svc/account/file.json" lego \
|
||||||
|
--email="abc@email.com" \
|
||||||
|
--domains="example.com" \
|
||||||
|
--dns="gcloud" \
|
||||||
|
--path="${HOME}/.lego" \
|
||||||
|
run
|
||||||
|
'''
|
||||||
|
|
||||||
[Configuration]
|
[Configuration]
|
||||||
[Configuration.Credentials]
|
[Configuration.Credentials]
|
||||||
|
|
Loading…
Add table
Reference in a new issue