Fix dynamic config generation

This commit is contained in:
Willian Mitsuda 2021-07-08 16:20:22 -03:00
parent da16ce8ad6
commit b6b33812c9
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
PARAMS=$(echo "{\"erigonURL\": \"$ERIGON_URL\"}" | jq -aRs .) PARAMS="{\"erigonURL\": $(echo $ERIGON_URL | jq -aR .)}"
echo $PARAMS > /usr/share/nginx/html/config.json echo $PARAMS > /usr/share/nginx/html/config.json
nginx -g "daemon off;" nginx -g "daemon off;"