diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 9343ca8..1ba02b9 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -6,11 +6,6 @@ on: - build env: IMAGE: saferwall/ui - VUE_APP_ANALYTICS_GOOGLE_TAG: UA-111524273-1 - VUE_APP_CSP_HOSTS: "*.saferwall.com saferwall.com" - VUE_APP_BASE_URI: "https://saferwall.com/" - VUE_APP_API_BASE_URL: "https://api.saferwall.com/v1/" - VUE_APP_AVATAR_BASE_URL: "https://avatar.saferwall.com/" jobs: yarn-build: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c68d784..07c4932 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,11 +2,6 @@ name: UI Release on: workflow_dispatch env: IMAGE: saferwall/ui - VUE_APP_ANALYTICS_GOOGLE_TAG: UA-111524273-1 - VUE_APP_CSP_HOSTS: "*.saferwall.com saferwall.com" - VUE_APP_BASE_URI: "https://saferwall.com/" - VUE_APP_API_BASE_URL: "https://api.saferwall.com/v1/" - VUE_APP_AVATAR_BASE_URL: "https://avatar.saferwall.com/" jobs: docker-release: diff --git a/entrypoint.sh b/entrypoint.sh index a38d4d1..f740d95 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -27,7 +27,7 @@ INDEX_HTML_FILE="/usr/share/nginx/html/index.html"; if [ -z "${VUE_APP_AVATAR_BASE_URL}" ]; then echo "[Warn] VUE_APP_AVATAR_BASE_URL env value is not defined, it can cause problem on profile avatar image loading !" else - sed -i "s/img-src/img-src '$VUE_APP_AVATAR_BASE_URL'/g" $NGINX_CONF_FILE + sed -i "s~img-src~img-src '$VUE_APP_AVATAR_BASE_URL'~g" $NGINX_CONF_FILE fi # Replace env in index.html @@ -44,7 +44,7 @@ else sed -i "s/$HEAD_TAG/$GA_TAG\n$HEAD_TAG/g" $INDEX_HTML_FILE - sed -i "s/script-src/script-src 'https://www.google-analytics.com'/g" $NGINX_CONF_FILE + sed -i "s~script-src~script-src 'https://www.google-analytics.com'~g" $NGINX_CONF_FILE fi echo "[Info] Starting Nginx ..."