* Getting the script to work on Mac OS X Bash Version 3 * Correcting the nginx template configuration and Dockerfile for the appsmith-editor. Now any replaced environment variables will be replaced when the Nginx Docker container restarts.
5 lines
219 B
Bash
Executable File
5 lines
219 B
Bash
Executable File
#!/bin/sh
|
|
set -ue
|
|
cat /nginx.conf.template | envsubst "$(printf '$%s,' $(env | grep -Eo '^APPSMITH_[A-Z0-9_]+'))" | sed -e 's|\${\(APPSMITH_[A-Z0-9_]*\)}||g' > /etc/nginx/conf.d/default.conf
|
|
exec nginx -g 'daemon off;'
|