Point WASM ApiBaseAddress at https://quranb.afrino.co to fix mixed content.
build-and-deploy / deploy (push) Has been cancelled
build-and-deploy / deploy (push) Has been cancelled
This commit is contained in:
@@ -48,8 +48,8 @@ jobs:
|
||||
NO_PROXY: 127.0.0.1,localhost,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
|
||||
no_proxy: 127.0.0.1,localhost,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
|
||||
NS: tafsirquran
|
||||
PUBLIC_WEB: http://185.252.31.44:30820
|
||||
PUBLIC_API: http://185.252.31.44:30821
|
||||
PUBLIC_WEB: https://quranb.afrino.co
|
||||
PUBLIC_API: https://quranb.afrino.co
|
||||
run: |
|
||||
set -euo pipefail
|
||||
./scripts/cicd-deploy.sh
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ ARG http_proxy
|
||||
ARG https_proxy
|
||||
ARG NO_PROXY
|
||||
ARG no_proxy
|
||||
ARG API_BASE=http://185.252.31.44:30821/
|
||||
ARG API_BASE=https://quranb.afrino.co/
|
||||
WORKDIR /src
|
||||
COPY NuGet.Config ./
|
||||
COPY src/TafsirQuran.Shared/TafsirQuran.Shared.csproj src/TafsirQuran.Shared/
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ metadata:
|
||||
name: tafsirquran-web-env
|
||||
namespace: tafsirquran
|
||||
data:
|
||||
ApiBaseAddress: "http://185.252.31.44:30821/"
|
||||
ApiBaseAddress: "https://quranb.afrino.co/"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
|
||||
@@ -8,8 +8,8 @@ NS="${NS:-tafsirquran}"
|
||||
API_IMAGE="${API_IMAGE:-tafsirquran-api:latest}"
|
||||
WEB_IMAGE="${WEB_IMAGE:-tafsirquran-web:latest}"
|
||||
MANIFEST="${MANIFEST:-$ROOT/k8s/manifest.yaml}"
|
||||
PUBLIC_WEB="${PUBLIC_WEB:-http://185.252.31.44:30820}"
|
||||
PUBLIC_API="${PUBLIC_API:-http://185.252.31.44:30821}"
|
||||
PUBLIC_WEB="${PUBLIC_WEB:-https://quranb.afrino.co}"
|
||||
PUBLIC_API="${PUBLIC_API:-https://quranb.afrino.co}"
|
||||
|
||||
PROXY="${HTTPS_PROXY:-${HTTP_PROXY:-${https_proxy:-${http_proxy:-}}}}"
|
||||
NO_PROXY_VAL="${NO_PROXY:-${no_proxy:-127.0.0.1,localhost,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16}}"
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"ApiBaseAddress": "http://185.252.31.44:30821/"
|
||||
"ApiBaseAddress": "https://quranb.afrino.co/"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Cache static WASM assets only — never HTML navigations.
|
||||
const CACHE = 'tafsirquran-wasm-v1';
|
||||
const CACHE = 'tafsirquran-wasm-v2';
|
||||
|
||||
self.addEventListener('install', event => event.waitUntil(self.skipWaiting()));
|
||||
self.addEventListener('activate', event => event.waitUntil(
|
||||
@@ -15,7 +15,7 @@ self.addEventListener('fetch', event => {
|
||||
event.respondWith(fetch(req));
|
||||
return;
|
||||
}
|
||||
if (url.pathname.startsWith('/api/') || url.origin.includes(':30821')) {
|
||||
if (url.pathname.startsWith('/api/')) {
|
||||
event.respondWith(fetch(req));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user