add location for acme; update scripts
This commit is contained in:
parent
c237c41457
commit
ac1e1f7008
4 changed files with 19 additions and 7 deletions
|
@ -5,9 +5,9 @@ cd "$(dirname "$(realpath "$0")")/../"
|
|||
|
||||
lego \
|
||||
--path ./data/.lego \
|
||||
--http.port :8080 \
|
||||
--tls.port :8443 \
|
||||
--email="acme@base23.de" \
|
||||
--domains="sso.base23.de" \
|
||||
--http renew \
|
||||
--renew-hook="./scripts/cert_renew_hook.sh"
|
||||
--http \
|
||||
--http.webroot ./data/nginx/acme \
|
||||
--renew-hook="./scripts/cert_renew_hook.sh" \
|
||||
renew
|
||||
|
|
|
@ -51,12 +51,15 @@ echo ""
|
|||
echo "Create certificate"
|
||||
lego \
|
||||
--path ./data/.lego \
|
||||
--http.port :8080 \
|
||||
--tls.port :8443 \
|
||||
--accept-tos \
|
||||
--email="acme@base23.de" \
|
||||
--domains="sso.base23.de" \
|
||||
--http run
|
||||
|
||||
# Link certificates to correct directory
|
||||
|
||||
ln -s ../../.lego/certificates/sso.base23.de.crt ./data/nginx/certs/sso.base23.de.crt
|
||||
ln -s ../../.lego/certificates/sso.base23.de.issuer.crt ./data/nginx/certs/sso.base23.de.issuer.crt
|
||||
ln -s ../../.lego/certificates/sso.base23.de.key ./data/nginx/certs/sso.base23.de.key
|
||||
|
||||
# Setup cronjob to automatically renew certificates
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue