Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Docker Nginx
Commits
61de8db5
Commit
61de8db5
authored
Jun 13, 2022
by
name
Browse files
优化启动脚本
parent
26d56d02
Changes
1
Hide whitespace changes
Inline
Side-by-side
docker-entrypoint.sh
View file @
61de8db5
...
...
@@ -5,6 +5,7 @@ DOMAINS=$(echo "$DOMAINS" | tr -s ' ')
SslServer
=
"
$SslServer
"
mail
=
"
$mail
"
SSL_DIR
=
"/etc/nginx/ssl/app/"
RELOAD_CMD
=
"nginx -s reload"
if
[
-z
"
$mail
"
]
;
then
echo
"[
$(
date
)
] Empty env var mail"
...
...
@@ -59,14 +60,14 @@ function StartAcmesh() {
/root/.acme.sh/acme.sh
--register-account
-m
$mail
echo
"[
$(
date
)
] acme.sh issue .."
/root/.acme.sh/acme.sh
--issue
--nginx
--debug
$ACME_DOMAIN_OPTION
--renew-hook
"
nginx -s reload
"
/root/.acme.sh/acme.sh
--issue
--nginx
--debug
$ACME_DOMAIN_OPTION
--renew-hook
"
${
RELOAD_CMD
}
"
echo
"[
$(
date
)
] acme.sh install-cert .."
/root/.acme.sh/acme.sh
--install-cert
$ACME_DOMAIN_OPTION
\
--fullchain-file
${
SSL_DIR
}
/fullchain.pem
\
--cert-file
${
SSL_DIR
}
/cert.pem
\
--key-file
${
SSL_DIR
}
/key.pem
\
--reloadcmd
"
nginx -s reload
"
--reloadcmd
"
${
RELOAD_CMD
}
"
echo
"[
$(
date
)
] Start cron"
crond
...
...
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