Variables in Nginx configuration (#853)

* Add envsubst binary to image

* Generate nginx.conf from template, with env-vars

* Remove nginx.conf, now generated from template

* Reload nginx config after writing file

Co-authored-by: Shane Kilkelly <shane.kilkelly@overleaf.com>
This commit is contained in:
Shane Kilkelly
2021-04-07 14:19:06 +01:00
committed by GitHub
parent 1540d1b891
commit f849b94005
5 changed files with 47 additions and 4 deletions

View File

@@ -30,6 +30,11 @@ RUN apt-get update \
/etc/nginx/sites-enabled/default \
/var/lib/apt/lists/*
# Add envsubst
# ------------
ADD ./vendor/envsubst /usr/bin/envsubst
RUN chmod +x /usr/bin/envsubst
# Install Grunt
# ------------
RUN npm install -g \