Commit 81146ba9 authored by Valian's avatar Valian
Browse files

fixes #2 duplicate redirect location after container restart

parent d1321e8f
...@@ -201,6 +201,7 @@ docker run [YOUR_OPTIONS] docker-nginx-auto-ssl ...@@ -201,6 +201,7 @@ docker run [YOUR_OPTIONS] docker-nginx-auto-ssl
# CHANGELOG # CHANGELOG
* **29-05-2017** - Fixed duplicate redirect location after container restart #2
* **19-12-2017** - Support for `$SITES` variable * **19-12-2017** - Support for `$SITES` variable
* **2-12-2017** - Dropped HSTS by default * **2-12-2017** - Dropped HSTS by default
* **25-11-2017** - Initial release * **25-11-2017** - Initial release
......
...@@ -50,7 +50,11 @@ fi ...@@ -50,7 +50,11 @@ fi
if [ "$FORCE_HTTPS" == "true" ]; then if [ "$FORCE_HTTPS" == "true" ]; then
# only do this, if it's first run
if ! grep -q "force-https.conf" ${RESTY_CONF_DIR}/resty-server-http.conf
then
echo "include force-https.conf;" >> ${RESTY_CONF_DIR}/resty-server-http.conf echo "include force-https.conf;" >> ${RESTY_CONF_DIR}/resty-server-http.conf
fi
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment