From ca481fabfc69f74a3c0f507ec1cf246efa5122dd Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Sat, 18 Apr 2020 10:23:04 +0100 Subject: [PATCH] . --- letsencrypt-nginx/Dockerfile.home | 4 ++-- letsencrypt-nginx/home.sh | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 letsencrypt-nginx/home.sh 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