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
# CHANGELOG
* **29-05-2017** - Fixed duplicate redirect location after container restart #2
* **19-12-2017** - Support for `$SITES` variable
* **2-12-2017** - Dropped HSTS by default
* **25-11-2017** - Initial release
......
......@@ -50,7 +50,11 @@ fi
if [ "$FORCE_HTTPS" == "true" ]; then
echo "include force-https.conf;" >> ${RESTY_CONF_DIR}/resty-server-http.conf
# 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
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