added platform config

This commit is contained in:
2020-12-17 16:07:17 -05:00
parent f1df9c3217
commit 010149e6b6
2 changed files with 27 additions and 0 deletions

View File

@@ -1,5 +1,9 @@
#!/bin/sh
if [[ $ACS_PLATFORM_URL ]]; then
sed -i s%http:\/\/platform:8080%"$REPO_URL"%g /etc/nginx/nginx.conf
fi
if [[ $ACCESS_LOG ]]; then
sed -i s%\#ENV_ACCESS_LOG%"access_log $ACCESS_LOG;"%g /etc/nginx/nginx.conf
fi