Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
b581a171
Unverified
Commit
b581a171
authored
Mar 19, 2019
by
Valentin Brandl
Browse files
Add documentation for mailcow deploy hook
parent
307336cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/README.md
View file @
b581a171
...
@@ -391,3 +391,23 @@ acme.sh --deploy --deploy-hook mydevil -d example.com
...
@@ -391,3 +391,23 @@ acme.sh --deploy --deploy-hook mydevil -d example.com
```
```
That will remove old certificate and install new one.
That will remove old certificate and install new one.
## 15. Deploy your cert to local mailcow server
You can install your certificates to a local
[
mailcow
](
https://github.com/mailcow/mailcow-dockerized/
)
instance. The
deploy hook will copy the certificates and reload the containers, that use the certificates (
`postfix-mailcow`
`dovecot-mailcow`
and
`nginx-mailcow`
).
```
sh
$
export
DEPLOY_MAILCOW_PATH
=
"/path/to/mailcow"
$
acme.sh
--deploy
-d
example.com
--deploy-hook
mailcow
```
The default command to restart is
`docker-compose restart postfix-mailcow dovecot-mailcow nginx-mailcow`
, if you want a
custom restart command, specify it by setting
`DEPLOY_MAILCOW_RELOAD`
:
```
sh
$
export
DEPLOY_MAILCOW_PATH
=
"/path/to/mailcow"
$
export
DEPLOY_MAILCOW_RELOAD
=
"docker-compose restart"
$
acme.sh
--deploy
-d
example.com
--deploy-hook
mailcow
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment