diff --git a/letsencrypt-nginx/Dockerfile.home b/letsencrypt-nginx/Dockerfile.home index ada15ea..1608f0b 100644 --- a/letsencrypt-nginx/Dockerfile.home +++ b/letsencrypt-nginx/Dockerfile.home @@ -3,5 +3,5 @@ FROM $image COPY ./conf/home.conf /etc/nginx/user.conf.d/server._conf COPY ./nginx.conf /etc/nginx/nginx.conf COPY ./website /www/data -COPY run.sh / -CMD sh /run.sh \ No newline at end of file +COPY home.sh / +CMD sh /home.sh \ No newline at end of file diff --git a/letsencrypt-nginx/home.sh b/letsencrypt-nginx/home.sh new file mode 100644 index 0000000..aa5f249 --- /dev/null +++ b/letsencrypt-nginx/home.sh @@ -0,0 +1,4 @@ +export DOLLAR='$' +envsubst < /etc/nginx/user.conf.d/server._conf > /etc/nginx/user.conf.d/server.conf +cat /etc/nginx/user.conf.d/server.conf +nginx -g "daemon off;" \ No newline at end of file