-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstartup.sh
14 lines (14 loc) · 971 Bytes
/
startup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
file=$(find /usr/src/app -type f -print0 | xargs -0 grep -l api.veo.example)
sed -i "s,https://api\.veo\.example/veo,$VEO_DEFAULT_API_URL,g" $file
sed -i "s,https://api\.veo\.example/forms,$VEO_FORMS_API_URL,g" $file
sed -i "s,https://api\.veo\.example/history,$VEO_HISTORY_API_URL,g" $file
sed -i "s,https://api\.veo\.example/reporting,$VEO_REPORTING_API_URL,g" $file
sed -i "s,https://api\.veo\.example/accounts,$VEO_ACCOUNTS_API_URL,g" $file
sed -i "s,https://account\.veo\.example,$VEO_ACCOUNT_PATH,g" $file
sed -i "s,https://auth\.veo\.example/auth/realms/veo-oidcrealm-example/account,$VEO_OIDC_ACCOUNT_APPLICATION,g" $file
sed -i "s,https://auth\.veo\.example/auth,$VEO_OIDC_URL,g" $file
sed -i "s,veo-oidcrealm-example,$VEO_OIDC_REALM,g" $file
sed -i "s,veo-oidcclient-example,$VEO_OIDC_CLIENT,g" $file
sed -i "s,veo-documentation-url-example,$VEO_DOCUMENTATION_URL,g" $file
nginx -c /etc/nginx/conf.d/custom.conf -g 'pid /tmp/nginx.pid; daemon off;'