File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ ssl_session_tickets off;
5
5
6
6
# ssl certs
7
7
{{ if .Env.ENABLE_LETSENCRYPT | default "0" | toBool }}
8
- ssl_certificate /etc/nginx/ acme/{{ .Env.LETSENCRYPT_DOMAIN }}/fullchain.pem;
9
- ssl_certificate_key /etc/nginx/ acme/{{ .Env.LETSENCRYPT_DOMAIN }}/key.pem;
8
+ ssl_certificate /config/ acme-certs /{{ .Env.LETSENCRYPT_DOMAIN }}/fullchain.pem;
9
+ ssl_certificate_key /config/ acme-certs /{{ .Env.LETSENCRYPT_DOMAIN }}/key.pem;
10
10
{{ else }}
11
11
ssl_certificate /config/keys/cert.crt;
12
12
ssl_certificate_key /config/keys/cert.key;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ if [[ $DISABLE_HTTPS -ne 1 ]]; then
16
16
sh ./acme.sh --install --home /config/acme.sh --accountemail $LETSENCRYPT_EMAIL
17
17
popd
18
18
fi
19
- if [[ ! -f /etc/nginx/ acme/$LETSENCRYPT_DOMAIN/fullchain.pem ]]; then
19
+ if [[ ! -f /config/ acme-certs /$LETSENCRYPT_DOMAIN/fullchain.pem ]]; then
20
20
STAGING=""
21
21
if [[ $LETSENCRYPT_USE_STAGING -eq 1 ]]; then
22
22
STAGING="--staging"
@@ -37,11 +37,11 @@ if [[ $DISABLE_HTTPS -ne 1 ]]; then
37
37
echo "Exiting."
38
38
exit 1
39
39
fi
40
- mkdir -p /etc/nginx/ acme/$LETSENCRYPT_DOMAIN
40
+ mkdir -p /config/ acme-certs /$LETSENCRYPT_DOMAIN
41
41
if ! /config/acme.sh/acme.sh \
42
42
--install-cert -d $LETSENCRYPT_DOMAIN \
43
- --key-file /etc/nginx/ acme/$LETSENCRYPT_DOMAIN/key.pem \
44
- --fullchain-file /etc/nginx/ acme/$LETSENCRYPT_DOMAIN/fullchain.pem ; then
43
+ --key-file /config/ acme-certs /$LETSENCRYPT_DOMAIN/key.pem \
44
+ --fullchain-file /config/ acme-certs /$LETSENCRYPT_DOMAIN/fullchain.pem ; then
45
45
echo "Failed to install certificate."
46
46
# this tries to get the user's attention and to spare the
47
47
# authority's rate limit:
You can’t perform that action at this time.
0 commit comments