Skip to content

Commit 080615d

Browse files
authored
v1.4.1 (#19)
Minor updates * Quoting variable outputs
1 parent 1a1e538 commit 080615d

File tree

5 files changed

+26
-26
lines changed

5 files changed

+26
-26
lines changed

overlay/etc/templates/getssl-global.conf.esh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ CA="https://acme-staging-v02.api.letsencrypt.org"
1919
#AGREEMENT=""
2020

2121
# Set an email address associated with your account - generally set at account level rather than domain.
22-
ACCOUNT_EMAIL=<%= ${LETS_ENCRYPT_EMAIL} %>
22+
ACCOUNT_EMAIL=<%= "${LETS_ENCRYPT_EMAIL}" %>
2323
ACCOUNT_KEY_LENGTH=4096
24-
ACCOUNT_KEY="<%= ${SSL_CERTS} %>account.key"
24+
ACCOUNT_KEY="<%= "${SSL_CERTS}account.key" %>"
2525

2626
# Account key and private key types - can be rsa, prime256v1, secp384r1 or secp521r1
2727
#ACCOUNT_KEY_TYPE="rsa"
@@ -49,4 +49,4 @@ CHECK_REMOTE="true"
4949
#DNS_ADD_COMMAND=
5050
#DNS_DEL_COMMAND=
5151

52-
SKIP_HTTP_TOKEN_CHECK=<%= ${GETSSL_SKIP_HTTP_TOKEN_CHECK} %>
52+
SKIP_HTTP_TOKEN_CHECK=<%= "${GETSSL_SKIP_HTTP_TOKEN_CHECK}" %>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
location ^~ /<%= ${ACME_CHALLENGE} %> {
1+
location ^~ /<%= "${ACME_CHALLENGE}" %> {
22
allow all;
3-
root <%= ${WWW} %>;
3+
root <%= "${WWW}" %>;
44
}

overlay/etc/templates/nginx-default.conf.esh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ server {
1111
listen 80 default_server;
1212
listen [::]:80 default_server;
1313

14-
<%+ ./nginx-acme-challenge.part.esh %>
14+
<%+ ./nginx-acme-challenge.part.esh %>
1515

1616
location / {
1717
<% if [ "${SSL_REDIRECT_INSECURE}" = "1" ] ; then -%>
18-
return 301 https://<%= ${DOMAIN_NAME} %>$request_uri;
18+
return 301 <%= "https://${DOMAIN_NAME}" %>$request_uri;
1919
<% else -%>
20-
root <%= ${WWW} %>;
20+
root <%= "${WWW}" %>;
2121
<% fi -%>
2222
}
2323
}
@@ -29,10 +29,10 @@ server {
2929
add_header X-Clacks-Overhead "GNU Terry Pratchett";
3030

3131
location / {
32-
root <%= ${WWW} %>;
32+
root <%= "${WWW}" %>;
3333
include helpers/proxy-secure-headers.conf;
34-
include <%= ${CUSTOM_CONF}/*.conf %>;
34+
include <%= "${CUSTOM_CONF}/*.conf" %>;
3535
}
3636

37-
<%+ ./nginx-ssl-certs.part.esh %>
37+
<%+ ./nginx-ssl-certs.part.esh %>
3838
}

overlay/etc/templates/nginx-site.conf.esh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,28 @@
66
# To add server names or aliases please use /ssl/conf.sh.
77
#
88
# If you need a fully custom configuration then add the following to /ssl/conf.sh:
9-
# NGXCONF["<%= ${DOMAIN_NAME} %>"]="custom"
9+
# NGXCONF["<%= "${DOMAIN_NAME}" %>"]="custom"
1010
# This will stop this file being generated next time the container is started.
1111
#
1212
# Copyright (c) 2021 Ben Green <https://bcgdesign.com>
1313
#======================================================================================================================
1414
<% fi %>
1515
server {
16-
server_name <%= ${SERVER_NAMES} %>;
16+
server_name <%= "${SERVER_NAMES}" %>;
1717
listen 80;
1818
listen [::]:80;
1919

20-
<%+ ./nginx-acme-challenge.part.esh %>
20+
<%+ ./nginx-acme-challenge.part.esh %>
2121

2222
location / {
2323
<% if [ "${SSL_REDIRECT_INSECURE}" = "1" ] ; then -%>
2424
<% if [ "${SSL_REDIRECT_TO_CANONICAL}" = "1" ] ; then -%>
25-
return 301 <%= https://${DOMAIN_NAME} %>$request_uri;
25+
return 301 <%= "https://${DOMAIN_NAME}" %>$request_uri;
2626
<% else -%>
2727
<% SERVER_NAMES_ARRAY=(${SERVER_NAMES}) -%>
2828
<% for DN in "${SERVER_NAMES_ARRAY[@]}" ; do -%>
2929
<% [[ -z "${DN}" ]] && continue -%>
30-
if ($host = <%= ${DN} %>) {
30+
if ($host = <%= "${DN}" %>) {
3131
return 301 https://$host$request_uri;
3232
}
3333
<% done -%>
@@ -37,26 +37,26 @@ server {
3737
}
3838

3939
server {
40-
server_name <%= ${SERVER_NAMES} %>;
40+
server_name <%= "${SERVER_NAMES}" %>;
4141
listen 443 ssl http2;
4242
listen [::]:443 ssl http2;
4343

4444
add_header X-Clacks-Overhead "GNU Terry Pratchett";
4545
<% if [ "${SSL_REDIRECT_TO_CANONICAL}" = "1" ] ; then %>
46-
if ($host != <%= ${DOMAIN_NAME} %>) {
47-
return 301 <%= https://${DOMAIN_NAME} %>$request_uri;
46+
if ($host != <%= "${DOMAIN_NAME}" %>) {
47+
return 301 <%= "https://${DOMAIN_NAME}" %>$request_uri;
4848
}
4949
<% fi -%>
5050

5151
location / {
52-
proxy_pass <%= ${UPSTREAM} %>;
52+
proxy_pass <%= "${UPSTREAM}" %>;
5353
include helpers/proxy-params.conf;
5454
include helpers/proxy-secure-headers.conf;
5555
error_page 502 503 504 /maintenance.html;
56-
include <%= ${CUSTOM_CONF}/*.conf %>;
56+
include <%= "${CUSTOM_CONF}/*.conf" %>;
5757
}
5858

5959
include helpers/proxy-maintenance.conf;
6060

61-
<%+ ./nginx-ssl-certs.part.esh %>
61+
<%+ ./nginx-ssl-certs.part.esh %>
6262
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ssl_certificate <%= ${SSL_CERTS}/${DOMAIN_NAME}/fullchain.crt %>;
2-
ssl_certificate_key <%= ${SSL_CERTS}/${DOMAIN_NAME}.key %>;
3-
ssl_trusted_certificate <%= ${SSL_CERTS}/${DOMAIN_NAME}/chain.crt %>;
4-
ssl_dhparam <%= ${SSL_DHPARAM} %>;
1+
ssl_certificate <%= "${SSL_CERTS}/${DOMAIN_NAME}/fullchain.crt" %>;
2+
ssl_certificate_key <%= "${SSL_CERTS}/${DOMAIN_NAME}.key" %>;
3+
ssl_trusted_certificate <%= "${SSL_CERTS}/${DOMAIN_NAME}/chain.crt" %>;
4+
ssl_dhparam <%= "${SSL_DHPARAM}" %>;

0 commit comments

Comments
 (0)