Updated Synology NAS Guide (markdown)
parent
226bd8c713
commit
4288288b6b
|
@ -67,11 +67,11 @@ export SYNO_USE_TEMP_ADMIN=1
|
|||
./acme.sh --deploy --home . -d "$CERT_DOMAIN" --deploy-hook synology_dsm
|
||||
```
|
||||
|
||||
The value of `SYNO_HOSTNAME` must be either `localhost` or `127.0.0.1`, because it designed to only support locally deployment, however, if your custom `SYNO_HOSTNAME` is indeed targeting to the current local machine, execute `export SYNO_LOCAL_HOSTNAME=1` then rerun.
|
||||
In this way, you won't need to provide any admin credentials, the deploy sciprt itself will utilize Synology built-in utils to complete authentication, so it designed to only support locally deployment, and can't be used to deploy in docker or deploy remotely.
|
||||
|
||||
After deployed done in this way, the temp admin user should be automatically deleted after execution, if the script unexpectedly stopped while running (e.g., aborted by pressing "Ctrl+C"), it may remain if it has already been created, in this case, you can safely delete it via Control panel.
|
||||
Script will load previous saved conf for subsequent deployments, so if you want to back to deploy with existing admin user, you need to execute `export CLEAR_SYNO_USE_TEMP_ADMIN=1` first. After deploy script exits, the temp admin user should either not have been created or has already been deleted, however it may still remain if script exits unexpectedly (e.g., aborted by pressing "Ctrl+C"), in this case, you can safely delete it via "Control Panel".
|
||||
|
||||
If you want to back to deploy with existing admin user, you need to execute `export CLEAR_SYNO_USE_TEMP_ADMIN=1`.
|
||||
Additionally, to prevent confusion, the value of `SYNO_HOSTNAME` must targets to current local machine (can be `localhost` or `127.0.0.1`), however if your custom SYNO_HOSTNAME does indeed target to current local machine, you should execute `export SYNO_LOCAL_HOSTNAME=1` before deploying.
|
||||
|
||||
#### Deploy with existing admin user
|
||||
If you prefer to deploy with existing admin user or if the above way is not available (e.g., installed in docker, want to deploy remotely, etc.), you need to provide your own credentials:
|
||||
|
|
Loading…
Reference in New Issue