diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..4ff3bd7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Always use LF endings. +* text eol=lf \ No newline at end of file diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 51367db..a6bf80a 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -53,7 +53,7 @@ jobs: platforms: linux/amd64,linux/arm/v7,linux/arm64 tags: | bfren/nginx-proxy:dev - bfren/nginx-proxy:${{ steps.version.outputs.contents }}-beta + bfren/nginx-proxy:${{ steps.version.outputs.contents }}-dev - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }} diff --git a/Dockerfile b/Dockerfile index 877aeb6..70389bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM bfren/nginx:nginx1.24-alpine3.18-5.0.16 +FROM bfren/nginx:nginx1.28-alpine3.22-6.5.7 LABEL org.opencontainers.image.source="https://github.com/bfren/docker-nginx-proxy" @@ -8,42 +8,37 @@ ARG BF_VERSION # port 80 is already exposed by the base image EXPOSE 443 +COPY ./overlay / + ENV \ - # the base domain of the proxy server (will be used when SSL bindings fail) - PROXY_DOMAIN= \ - # clean all config and certificates before doing anything else - PROXY_CLEAN_INSTALL=0 \ + # the root domain of the proxy server (will be used when SSL bindings fail) + BF_PROXY_DOMAIN= \ + # delete all config and certificates before doing anything else + BF_PROXY_CLEAN_INSTALL=0 \ # enable automatic certificate updating - PROXY_ENABLE_AUTO_UPDATE=1 \ - # enable NAXSI web application firewall - PROXY_ENABLE_NAXSI=0 \ - # use hardened mode (remove old / insecure ciphers and protocols) - PROXY_HARDEN=0 \ + BF_PROXY_ENABLE_AUTO_UPDATE=1 \ + # use hardened mode (e.g. remove old / insecure ciphers and protocols) + BF_PROXY_HARDEN=0 \ # used for renewal notification emails - PROXY_LETS_ENCRYPT_EMAIL= \ + BF_PROXY_GETSSL_EMAIL= \ # set to 1 to use live instead of staging server - PROXY_LETS_ENCRYPT_LIVE=0 \ + BF_PROXY_GETSSL_USE_LIVE_SERVER=0 \ + # the renew window number of days - certificates with more than this will not renew (Nu duration) + BF_PROXY_GETSSL_RENEW_WINDOW=14day \ + # set to 1 to skip local HTTP token check + BF_PROXY_GETSSL_SKIP_HTTP_TOKEN_CHECK=0 \ # set to the number of bits to use for generating private key - PROXY_SSL_KEY_BITS=4096 \ + BF_PROXY_SSL_KEY_BITS=4096 \ # set to the number of bits to use for generating DHPARAM - PROXY_SSL_DHPARAM_BITS=4096 \ + BF_PROXY_SSL_DHPARAM_BITS=4096 \ + # the period of time before self-generated SSL certificates will expire (Nu duration) + BF_PROXY_SSL_EXPIRY=36500day \ # canonical domain name redirection - PROXY_SSL_REDIRECT_TO_CANONICAL=0 \ - # set to true to skip local HTTP token check - PROXY_GETSSL_SKIP_HTTP_TOKEN_CHECK="false" \ - # if both are set, on first startup will generate SSL config and request certs - PROXY_AUTO_PRIMARY= \ - PROXY_AUTO_UPSTREAM= \ - # optional - add aliases to the auto-generated conf.json on first startup - PROXY_AUTO_ALIASES= \ - # optional - mark the Nginx config as custom so it isn't regenerated on future startups - PROXY_AUTO_CUSTOM=0 \ + BF_PROXY_SSL_REDIRECT_TO_CANONICAL=0 \ # upstream DNS resolver, set to Docker's internal resolver by default - PROXY_UPSTREAM_DNS_RESOLVER=127.0.0.11 \ - # the number of seconds before the maintenance page will auto-refresh - PROXY_MAINTENANCE_REFRESH_SECONDS=6 - -COPY ./overlay / + BF_PROXY_UPSTREAM_DNS_RESOLVER=127.0.0.11 \ + # the number of seconds before the maintenance page will automatically refresh (Nu duration) + BF_PROXY_MAINTENANCE_REFRESH=6sec RUN bf-install diff --git a/LICENSE b/LICENSE index 06c6f55..b48eea3 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020-2024 bfren +Copyright (c) 2020-2025 bfren Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 964041a..a3c2aa1 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [Docker Repository](https://hub.docker.com/r/bfren/nginx-proxy) - [bfren ecosystem](https://github.com/bfren/docker) -Nginx Proxy which uses [getssl](https://github.com/srvrco/getssl) to automate requesting and renewing SSL certificates via Let's Encrypt. Certificates are checked for renewal every day - the last check can be viewed in the `/ssl` volume. Also includes [NAXSI](https://github.com/nbs-system/naxsi), a web application firewall. +Nginx Proxy which uses [getssl](https://github.com/srvrco/getssl) to automate requesting and renewing SSL certificates via Let's Encrypt. Certificates are checked for renewal every day - the last check can be viewed in the `/ssl` volume. As of v4, configuration is handled via a JSON file - see ssl-conf-sample.json for an example and ssl-conf-schema.json for the full file definition. @@ -34,23 +34,18 @@ For SSL certificate requests to work correctly, ports 80 and 443 need mapping fr ## Environment Variables -| Variable | Values | Description | Default | -| ------------------------------------- | --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | -| `PROXY_AUTO_PRIMARY` | URI | If set (along with PROXY_AUTO_UPSTREAM) SSL config will be generated on first startup. | *None* | -| `PROXY_AUTO_UPSTREAM` | URI | If set (along with PROXY_AUTO_PRIMARY) SSL config will be generated on first startup. | *None* | -| `PROXY_AUTO_ALIASES` | string of URIs | Add aliases to the auto-generated conf.json on first startup. | *None* | -| `PROXY_AUTO_CUSTOM` | 0 or 1 | Mark the auto-generated SSL config to 'custom' so the Nginx configuration is not regenerated on startup. | 0 | -| `PROXY_CLEAN_INSTALL` | 0 or 1 | If 1, all Nginx and SSL configuration and certificates will be deleted and regenerated. | 0 | -| `PROXY_DOMAIN` | URI | The base domain of the proxy server - will be used to handle unbound requests. | *None* - **required** | -| `PROXY_ENABLE_NAXSI` | 0 or 1 | If 1, NAXSI web application firewall will be enabled for all sites. | 0 | -| `PROXY_GETSSL_SKIP_HTTP_TOKEN_CHECK` | true or false | Set to true to enable `getssl`'s [skip HTTP token check](https://github.com/srvrco/getssl/wiki/Config-variables#skip_http_token_checkfalse). | false | -| `PROXY_HARDEN` | 0 or 1 | If 1, only modern SSL ciphers and protocols will be enabled (some older devices may not be able to access it). | 0 | -| `PROXY_LETS_ENCRYPT_EMAIL` | A valid email address | Used by Lets Encrypt for notification emails. | *None* - **required** | -| `PROXY_LETS_ENCRYPT_LIVE` | 0 or 1 | Only set to 1 (to request live certificates) when your config is correct - Lets Encrypt rate limit certificate requests. | 0 | -| `PROXY_MAINTENANCE_REFRESH_SECONDS` | A valid integer | The number of seconds to count down before the maintenance page auto-refreshes. | 6 | -| `PROXY_SSL_DHPARAM_BITS` | A valid integer | The size of your DHPARAM variables - adjust down only if you have limited processing resources. | 4096 | -| `PROXY_SSL_REDIRECT_TO_CANONICAL` | 0 or 1 | If 1, all requests will be redirected to the primary domain (defined in `conf.json`). | 0 | -| `PROXY_UPSTREAM_DNS_RESOLVER` | IP address | Upstream DNS resolver - set to Docker's by default. | 127.0.0.11 | +| Variable | Values | Description | Default | +| ----------------------------------------- | --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | +| `BF_PROXY_CLEAN_INSTALL` | 0 or 1 | If 1, all Nginx and SSL configuration and certificates will be deleted and regenerated. | 0 | +| `BF_PROXY_DOMAIN` | URI | The base domain of the proxy server - will be used to handle unbound requests. | *None* - **required** | +| `BF_PROXY_GETSSL_EMAIL` | A valid email address | Used by Lets Encrypt for notification emails. | *None* - **required** | +| `BF_PROXY_GETSSL_SKIP_HTTP_TOKEN_CHECK` | true or false | Set to true to enable `getssl`'s [skip HTTP token check](https://github.com/srvrco/getssl/wiki/Config-variables#skip_http_token_checkfalse). | false | +| `BF_PROXY_GETSSL_USE_LIVE_SERVER` | 0 or 1 | Only set to 1 (to request live certificates) when your config is correct - Lets Encrypt rate limit certificate requests. | 0 | +| `BF_PROXY_HARDEN` | 0 or 1 | If 1, only modern SSL ciphers and protocols will be enabled (some older devices may not be able to access it). | 0 | +| `BF_PROXY_MAINTENANCE_REFRESH_SECONDS` | A valid integer | The number of seconds to count down before the maintenance page auto-refreshes. | 6 | +| `BF_PROXY_SSL_DHPARAM_BITS` | A valid integer | The size of your DHPARAM variables - adjust down only if you have limited processing resources. | 4096 | +| `BF_PROXY_SSL_REDIRECT_TO_CANONICAL` | 0 or 1 | If 1, all requests will be redirected to the primary domain (defined in `conf.json`). | 0 | +| `BF_PROXY_UPSTREAM_DNS_RESOLVER` | IP address | Upstream DNS resolver - set to Docker's by default. | 127.0.0.11 | ## Helper Functions @@ -83,4 +78,4 @@ The image contains a handful of useful Nginx configuration 'helper' files, which ## Copyright -> Copyright (c) 2020-2024 [bfren](https://bfren.dev) (unless otherwise stated) +> Copyright (c) 2020-2025 [bfren](https://bfren.dev) (unless otherwise stated) diff --git a/VERSION b/VERSION index a52e7a4..fa5fce0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -7.1.5 \ No newline at end of file +8.0.0 \ No newline at end of file diff --git a/VERSION_MAJOR b/VERSION_MAJOR index c793025..301160a 100644 --- a/VERSION_MAJOR +++ b/VERSION_MAJOR @@ -1 +1 @@ -7 \ No newline at end of file +8 \ No newline at end of file diff --git a/VERSION_MINOR b/VERSION_MINOR index 986084f..b293f64 100644 --- a/VERSION_MINOR +++ b/VERSION_MINOR @@ -1 +1 @@ -7.1 \ No newline at end of file +8.0 \ No newline at end of file diff --git a/overlay/etc/bf/ch.d/20-proxy b/overlay/etc/bf/ch.d/20-proxy index fc78aca..cc04658 100644 --- a/overlay/etc/bf/ch.d/20-proxy +++ b/overlay/etc/bf/ch.d/20-proxy @@ -1,5 +1,2 @@ -/etc/naxsi www:www 0640 0750 -/etc/nginx/sites www:www 0640 0750 -/etc/ssl/certs www:www 0640 0750 /sites www:www 0640 0750 /ssl www:www 0640 0750 diff --git a/overlay/etc/bf/init.d/20-env b/overlay/etc/bf/init.d/20-env deleted file mode 100644 index 8a6f6dd..0000000 --- a/overlay/etc/bf/init.d/20-env +++ /dev/null @@ -1,43 +0,0 @@ -#!/command/with-contenv bash - -set -euo pipefail -export BF_E=`basename ${0}` - - -#====================================================================================================================== -# Define environment variables. -#====================================================================================================================== - -PROXY_LIB=${BF_LIB}/proxy -bf-env "PROXY_LIB" "${PROXY_LIB}" -bf-env "PROXY_GETSSL" "${PROXY_LIB}/getssl" - -PROXY_SSL=/ssl -bf-env "PROXY_SSL" ${PROXY_SSL} -bf-env "PROXY_SSL_CONF" "${PROXY_SSL}/conf.json" -bf-env "PROXY_SSL_DHPARAM" "${PROXY_SSL}/dhparam.pem" - -PROXY_SSL_CERTS=${PROXY_SSL}/certs -bf-env "PROXY_SSL_CERTS" "${PROXY_SSL_CERTS}" - -PROXY_GETSSL_CFG=getssl.cfg -bf-env "PROXY_GETSSL_CFG" "${PROXY_GETSSL_CFG}" -bf-env "PROXY_GETSSL_GLOBAL_CFG" "${PROXY_SSL_CERTS}/${PROXY_GETSSL_CFG}" -bf-env "PROXY_GETSSL_ACCOUNT_KEY" "${PROXY_SSL_CERTS}/account.key" - -bf-env "PROXY_SITES" "/sites" - -PROXY_ACME_CHALLENGE=.well-known/acme-challenge -bf-env "PROXY_ACME_CHALLENGE" "${PROXY_ACME_CHALLENGE}" -bf-env "PROXY_WWW_ACME_CHALLENGE" "${NGINX_WWW}/${PROXY_ACME_CHALLENGE}" - -if [ "${PROXY_GETSSL_DEBUG-}" = "1" ] ; then - bf-env "PROXY_GETSSL_FLAGS" "-d -U" -else - bf-env "PROXY_GETSSL_FLAGS" "-U" -fi - -if [ -n "${PROXY_URI-}" ] ; then - bf-notok "Please rename your PROXY_URI environment variable to PROXY_DOMAIN." - bf-env "PROXY_DOMAIN" "${PROXY_URI}" -fi diff --git a/overlay/etc/bf/init.d/20-env.nu b/overlay/etc/bf/init.d/20-env.nu new file mode 100644 index 0000000..4b83a25 --- /dev/null +++ b/overlay/etc/bf/init.d/20-env.nu @@ -0,0 +1,35 @@ +use bf +bf env load + +# Set environment variables +def main []: nothing -> nothing { + bf env set "PROXY_GETSSL" "/usr/bin/getssl" + + let proxy_ssl = "/ssl" + bf env set "PROXY_SSL" $proxy_ssl + bf env set "PROXY_SSL_CONF" $"($proxy_ssl)/conf.json" + bf env set "PROXY_SSL_DHPARAM" $"($proxy_ssl)/dhparam.pem" + + let proxy_ssl_certs = $"($proxy_ssl)/certs" + let proxy_getssl_config = "getssl.cfg" + bf env set "PROXY_SSL_CERTS" $proxy_ssl_certs + bf env set "PROXY_GETSSL_CFG" $proxy_getssl_config + bf env set "PROXY_GETSSL_GLOBAL_CFG" $"($proxy_ssl_certs)/($proxy_getssl_config)" + bf env set "PROXY_GETSSL_ACCOUNT_KEY" $"($proxy_ssl_certs)/account.key" + + let proxy_sites = "/sites" + bf env set "PROXY_SITES" $proxy_sites + + let proxy_acme_challenge = ".well-known/acme-challenge" + bf env set "PROXY_ACME_CHALLENGE" $proxy_acme_challenge + bf env set "PROXY_WWW_ACME_CHALLENGE" $"(bf env NGINX_WWW)/($proxy_acme_challenge)" + + let getssl_flags = match (bf env check PROXY_GETSSL_DEBUG) { + true => "-d -U" + false => "-U" + } + bf env set "PROXY_GETSSL_FLAGS" $getssl_flags + + # return nothing + return +} diff --git a/overlay/etc/bf/init.d/21-nginx-conf.nu b/overlay/etc/bf/init.d/21-nginx-conf.nu new file mode 100644 index 0000000..4e5f95a --- /dev/null +++ b/overlay/etc/bf/init.d/21-nginx-conf.nu @@ -0,0 +1,6 @@ +use bf +use bf/nginx/proxy nginx +bf env load + +# Generate Nginx server SSL configuration file +def main []: nothing -> nothing { nginx generate_server_conf } diff --git a/overlay/etc/bf/init.d/21-ssl-conf b/overlay/etc/bf/init.d/21-ssl-conf deleted file mode 100644 index 1d92e73..0000000 --- a/overlay/etc/bf/init.d/21-ssl-conf +++ /dev/null @@ -1,19 +0,0 @@ -#!/command/with-contenv bash - -set -euo pipefail -export BF_E=`basename ${0}` - - -#====================================================================================================================== -# Generate Nginx SSL configuration file. -#====================================================================================================================== - -if [ "${PROXY_HARDEN}" = "1" ] ; then - TEMPLATE="modern" -else - TEMPLATE="intermediate" -fi - -bf-echo "Using ${TEMPLATE} SSL configuration." -bf-esh ${BF_TEMPLATES}/ssl-${TEMPLATE}.conf.esh /etc/nginx/http.d/ssl.conf -bf-done diff --git a/overlay/etc/bf/init.d/22-ssl-init b/overlay/etc/bf/init.d/22-ssl-init deleted file mode 100644 index 41baef6..0000000 --- a/overlay/etc/bf/init.d/22-ssl-init +++ /dev/null @@ -1,49 +0,0 @@ -#!/command/with-contenv bash - -set -euo pipefail -export BF_E=`basename ${0}` - - -#====================================================================================================================== -# Check for clean install. -#====================================================================================================================== - -if [ "${PROXY_CLEAN_INSTALL}" = "1" ] ; then - - bf-echo "Clean install detected..." - bf-rmrf "${PROXY_GETSSL_GLOBAL_CFG}" - bf-rmrf "${PROXY_SSL_DHPARAM}" - bf-rmrf "${PROXY_SSL_CERTS}/*" - bf-rmrf "${PROXY_SITES}/*" - bf-done - -fi - - -#====================================================================================================================== -# If there is no SSL configuration file, and auto environment variables are set, generate config. -#====================================================================================================================== - -if [ ! -f "${PROXY_SSL_CONF}" ] && [ -n "${PROXY_AUTO_PRIMARY-}" ] && [ -n "${PROXY_AUTO_UPSTREAM-}" ] ; then - - # generate conf - bf-echo "Generating conf.json using auto environment variables." - bf-esh ${BF_TEMPLATES}/conf.json.esh ${PROXY_SSL_CONF} - bf-env "PROXY_AUTO" "1" - - # if there are aliases enable canonical redirection - [[ -n "${PROXY_AUTO_ALIASES-}" ]] && bf-env "PROXY_SSL_REDIRECT_TO_CANONICAL" "1" - - # initialise all domains (proxy plus auto) - ssl-init -a - - -#====================================================================================================================== -# Run initialisation script only for the proxy domain. -#====================================================================================================================== - -else - - ssl-init -d "proxy" - -fi diff --git a/overlay/etc/bf/init.d/22-ssl-init.nu b/overlay/etc/bf/init.d/22-ssl-init.nu new file mode 100644 index 0000000..91ff37f --- /dev/null +++ b/overlay/etc/bf/init.d/22-ssl-init.nu @@ -0,0 +1,15 @@ +use bf +use bf/nginx/proxy +bf env load + +# Initialise SSL global config and proxy domain +def main []: nothing -> nothing { + # setup for a clean install + if (bf env check PROXY_CLEAN_INSTALL) { + bf write "Clean install detected." + proxy init setup_clean_install + } + + # initialise only the root domain + proxy init --root +} diff --git a/overlay/etc/bf/init.d/23-maintenance.nu b/overlay/etc/bf/init.d/23-maintenance.nu new file mode 100644 index 0000000..bdaf4d9 --- /dev/null +++ b/overlay/etc/bf/init.d/23-maintenance.nu @@ -0,0 +1,11 @@ +use bf +use bf/nginx/proxy maintenance +bf env load + +# Generate maintenance helper config and html page +def main []: nothing -> nothing { + bf write "Generating maintenance files." + maintenance generate_helper_conf + maintenance generate_html + return +} diff --git a/overlay/etc/bf/init.d/23-naxsi b/overlay/etc/bf/init.d/23-naxsi deleted file mode 100644 index 1c40f96..0000000 --- a/overlay/etc/bf/init.d/23-naxsi +++ /dev/null @@ -1,21 +0,0 @@ -#!/command/with-contenv bash - -set -euo pipefail -export BF_E=`basename ${0}` - - -#====================================================================================================================== -# Generate NAXSI configuration. -#====================================================================================================================== - -if [ "${PROXY_ENABLE_NAXSI-}" = "1" ] ; then - - bf-echo "Generating NAXSI files." - bf-esh ${BF_TEMPLATES}/naxsi.conf.esh /etc/nginx/helpers/naxsi.conf - bf-done - -else - - bf-echo "NAXSI not enabled." - -fi diff --git a/overlay/etc/bf/init.d/24-maintenance b/overlay/etc/bf/init.d/24-maintenance deleted file mode 100644 index 14c6521..0000000 --- a/overlay/etc/bf/init.d/24-maintenance +++ /dev/null @@ -1,14 +0,0 @@ -#!/command/with-contenv bash - -set -euo pipefail -export BF_E=`basename ${0}` - - -#====================================================================================================================== -# Generate maintenance configuration helper and page. -#====================================================================================================================== - -bf-echo "Generating maintenance files." -bf-esh ${BF_TEMPLATES}/proxy-maintenance.conf.esh /etc/nginx/helpers/proxy-maintenance.conf -bf-esh ${BF_TEMPLATES}/maintenance.html.esh ${NGINX_PUBLIC}/maintenance.html -bf-done diff --git a/overlay/etc/bf/templates/conf.json.esh b/overlay/etc/bf/templates/conf.json.esh index 2f2b840..59141ee 100644 --- a/overlay/etc/bf/templates/conf.json.esh +++ b/overlay/etc/bf/templates/conf.json.esh @@ -2,9 +2,9 @@ "$schema": "https://raw.githubusercontent.com/bfren/docker-nginx-proxy/main/ssl-conf-schema.json", "domains": [ { - "primary": "<%= ${PROXY_AUTO_PRIMARY} %>", - "upstream": "<%= ${PROXY_AUTO_UPSTREAM} %>"<% if [ -n "${PROXY_AUTO_ALIASES-}" ] ; then %>, - "aliases": [ "<%= ${PROXY_AUTO_ALIASES// /\", \"} %>" ]<% fi ; if [ "${PROXY_AUTO_CUSTOM-}" = "1" ] ; then %>, + "primary": "<%= ${PRIMARY} %>", + "upstream": "<%= ${UPSTREAM} %>"<% if [ -n "${ALIASES}" ] ; then %>, + "aliases": [ <%= ${ALIASES} %> ]<% fi ; if [ "${CUSTOM}" = "1" ] ; then %>, "custom": true<% fi %> } ] diff --git a/overlay/etc/bf/templates/getssl-global.conf.esh b/overlay/etc/bf/templates/getssl.cfg.esh similarity index 81% rename from overlay/etc/bf/templates/getssl-global.conf.esh rename to overlay/etc/bf/templates/getssl.cfg.esh index c3ffc93..b8ba48a 100644 --- a/overlay/etc/bf/templates/getssl-global.conf.esh +++ b/overlay/etc/bf/templates/getssl.cfg.esh @@ -3,7 +3,7 @@ # Uncomment and modify any variables you need # see https://github.com/srvrco/getssl/wiki/Config-variables for details # -<% if [ "${PROXY_LETS_ENCRYPT_LIVE}" = "1" ] ; then %> +<% if [ "${USE_LIVE_SERVER}" = "1" ] ; then %> # The staging server is best for testing #CA="https://acme-staging-v02.api.letsencrypt.org" # This server issues full certificates, however has rate limits @@ -19,9 +19,9 @@ CA="https://acme-staging-v02.api.letsencrypt.org" #AGREEMENT="" # Set an email address associated with your account - generally set at account level rather than domain. -ACCOUNT_EMAIL=<%= ${PROXY_LETS_ENCRYPT_EMAIL} %> +ACCOUNT_EMAIL="<%= ${ACCOUNT_EMAIL} %>" ACCOUNT_KEY_LENGTH=4096 -ACCOUNT_KEY="<%= ${PROXY_GETSSL_ACCOUNT_KEY} %>" +ACCOUNT_KEY="<%= ${ACCOUNT_KEY} %>" # Account key and private key types - can be rsa, prime256v1, secp384r1 or secp521r1 #ACCOUNT_KEY_TYPE="rsa" @@ -29,13 +29,13 @@ PRIVATE_KEY_ALG="rsa" #REUSE_PRIVATE_KEY="true" # The command needed to reload apache / nginx or whatever you use -#RELOAD_CMD="" +RELOAD_CMD="nginx-reload" # The time period within which you want to allow renewal of a certificate # this prevents hitting some of the rate limits. # Creating a file called FORCE_RENEWAL in the domain directory allows one-off overrides # of this setting -RENEW_ALLOW="30" +RENEW_ALLOW="<%= "${RENEW_ALLOW}" %>" # Define the server type. This can be https, ftp, ftpi, imap, imaps, pop3, pop3s, smtp, # smtps_deprecated, smtps, smtp_submission, xmpp, xmpps, ldaps or a port number which @@ -49,4 +49,7 @@ CHECK_REMOTE="true" #DNS_ADD_COMMAND= #DNS_DEL_COMMAND= -SKIP_HTTP_TOKEN_CHECK=<%= ${PROXY_GETSSL_SKIP_HTTP_TOKEN_CHECK} %> +# If set to "true" then the script will not check that the url +# "http://yourdomain.com/.well-known/acme-challenge/token" can be reached after +# uploading the token. +SKIP_HTTP_TOKEN_CHECK="<%= ${SKIP_HTTP_TOKEN_CHECK} %>" diff --git a/overlay/etc/bf/templates/maintenance.html.esh b/overlay/etc/bf/templates/maintenance.html.esh index 63ad1ad..3cad07a 100644 --- a/overlay/etc/bf/templates/maintenance.html.esh +++ b/overlay/etc/bf/templates/maintenance.html.esh @@ -11,9 +11,9 @@

Maintenance

The site you requested is temporarily down for maintenance. Please try again later.

-

This page will auto-refresh in <%= "${PROXY_MAINTENANCE_REFRESH_SECONDS}" %>s.

+

This page will auto-refresh in <%= "${REFRESH_SECONDS}" %>s.