diff --git a/Dockerfiles/frontend/start b/Dockerfiles/frontend/start index 2f43c2c..1d1cfd9 100755 --- a/Dockerfiles/frontend/start +++ b/Dockerfiles/frontend/start @@ -12,6 +12,12 @@ cp -f /etc/nginx/common_default.conf /etc/nginx/common.conf ${USE_SSL:=false} if $USE_SSL ; then echo "include ssl.conf;" >> /etc/nginx/common.conf + + # Create self-signed certificate if using ssl and keys do not exist. + # You can always replace these with your own keys later. + if [[ ! -f /config/frontend/ssl.key || ! -f /config/frontend/ssl.crt ]]; then + ssl-gen seedbox + fi fi nginx -g "daemon off;"