Skip to content

Commit a5a80ea

Browse files
authored
v1.4.3 (#21)
Major updates * Updating heathcheck to use PROXY_URI instead of localhost to avoid certificate errors
1 parent 17058e4 commit a5a80ea

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.2
1+
1.4.3

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ server {
1818

1919
<% if [ "${SSL_REDIRECT_INSECURE}" = "1" ] ; then -%>
2020
# redirect to HTTPS
21-
return 301 $host$request_uri;
21+
return 301 https://$host$request_uri;
2222
<% else -%>
2323
# serve pages in <%= "${WWW}" %> (map volume to override default pages)
2424
root <%= "${WWW}" %>;

overlay/usr/local/bin/healthcheck

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/with-contenv bash
2+
3+
set -euo pipefail
4+
5+
6+
#======================================================================================================================
7+
# Attempt to load Proxy URI using wget
8+
#======================================================================================================================
9+
10+
wget --no-verbose --tries=1 --spider "http://${PROXY_URI}" || exit 1

0 commit comments

Comments
 (0)