25. Parmater explaind

master
F-Plass 2021-12-06 22:33:12 +01:00
parent b810fd30be
commit 7a0dee11d4
1 changed files with 6 additions and 3 deletions

@ -749,13 +749,16 @@ Before you can deploy your cert, you must [issue the cert first](https://github.
# The following environmental variables may be set if you don't like their
# default values:
#
# DEPLOY_TRUENAS_HOSTNAME - defaults to localhost
# DEPLOY_TRUENAS_SCHEME - defaults to http, set alternatively to https```
# DEPLOY_TRUENAS_HOSTNAME - defaults to localhost # Specify if not using on localhost
# DEPLOY_TRUENAS_SCHEME - defaults to http, set alternatively to https
```
In the WebUI from TrueNAS you can click on the gear wheel in the top right corner than select API Keys.
Here you can create an API Key for the next step.
If acme.sh is installed direkt on your Truenas server, then you don't have to set DEPLOY_TRUENAS_HOSTNAME. When the acme.sh scipt runs on an other system, what is possible, then you have to set the DEPLOY_TRUENAS_HOSTNAME to the IP or Hostname of the TrueNAS server.
With DEPLOY_TRUENAS_SCHEME you can choose if you use http or https. If in the TrueNAS WebGui is the Parameter "Webinterface HTTP -> HTTPS-Redirection" is activeted then DEPLOY_TRUENAS_SCHEME is set to https per default.
```sh
export DEPLOY_TRUENAS_APIKEY="1-91iX3...aSTRr4xcv1FHU"
acme.sh --deploy -d truenas.example.com --deploy-hook truenas