DONE: fix error on gold display is not showing on display tv
This commit is contained in:
@@ -124,10 +124,16 @@ jobs:
|
||||
TAGS="${TAGS} -t ${IMAGE}:${{ gitea.ref_name }}"
|
||||
fi
|
||||
|
||||
GOLD_PRICE_URL="${{ secrets.VITE_GOLD_PRICE_URL }}"
|
||||
if [ -z "${GOLD_PRICE_URL}" ]; then
|
||||
GOLD_PRICE_URL="https://apiujrah.erahn.com.my/api/harga_emas"
|
||||
fi
|
||||
|
||||
echo "Building and pushing teller: ${TAGS}"
|
||||
docker buildx build \
|
||||
--platform linux/amd64 \
|
||||
--build-arg VITE_API_URL="${API_URL}" \
|
||||
--build-arg VITE_GOLD_PRICE_URL="${GOLD_PRICE_URL}" \
|
||||
--cache-from type=registry,ref=${IMAGE}:buildcache,ignore-error=true \
|
||||
--cache-to type=registry,ref=${IMAGE}:buildcache,mode=max \
|
||||
-f fe/web/teller-app/Dockerfile \
|
||||
|
||||
@@ -9,9 +9,9 @@ spring:
|
||||
hibernate:
|
||||
ddl-auto: none
|
||||
datasource:
|
||||
url: ${SPRING_DATASOURCE_URL:jdbc:mysql://localhost:3306/qms}
|
||||
username: ${SPRING_DATASOURCE_USERNAME}
|
||||
password: ${SPRING_DATASOURCE_PASSWORD}
|
||||
url: ${SPRING_DATASOURCE_URL:jdbc:mysql://localhost:3306/qms?allowPublicKeyRetrieval=true&useSSL=false}
|
||||
username: ${SPRING_DATASOURCE_USERNAME:root}
|
||||
password: ${SPRING_DATASOURCE_PASSWORD:password}
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 100MB
|
||||
@@ -28,7 +28,7 @@ spring:
|
||||
jwt:
|
||||
header-title: Authorization
|
||||
token-prefix: Bearer
|
||||
secret-key: ${JWT_SECRET_KEY}
|
||||
secret-key: ${JWT_SECRET_KEY:a68uiaDQ0V3iLjF4DqMuS13GAVwkut55dlFbGCLyXTF}
|
||||
authorities-key: USER_AUTHORITIES
|
||||
token-validity-time: PT30M
|
||||
tfa:
|
||||
|
||||
@@ -5,6 +5,7 @@ CUSTOMER_HOST_PORT=3000
|
||||
VITE_API_URL=https://qms-api.erahn.com.my
|
||||
NEXT_PUBLIC_API_URL=https://qms-api.erahn.com.my
|
||||
VITE_BRANCH_QR_BASE_URL=https://qms-customer.erahn.com.my
|
||||
VITE_GOLD_PRICE_URL=https://apiujrah.erahn.com.my/api/harga_emas
|
||||
|
||||
QR_TOKEN_SECRET=qms-branch-qr-v1
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ CUSTOMER_HOST_PORT=3000
|
||||
VITE_API_URL=https://qms-api.erahn.com.my
|
||||
NEXT_PUBLIC_API_URL=https://qms-api.erahn.com.my
|
||||
VITE_BRANCH_QR_BASE_URL=https://qms-customer.erahn.com.my
|
||||
VITE_GOLD_PRICE_URL=https://apiujrah.erahn.com.my/api/harga_emas
|
||||
|
||||
QR_TOKEN_SECRET=qms-branch-qr-v1
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
VITE_API_URL=http://localhost:8080
|
||||
VITE_BRANCH_QR_BASE_URL=http://localhost:3000
|
||||
@@ -1,4 +1,5 @@
|
||||
export const SERVER_URL = import.meta.env.VITE_API_URL;
|
||||
export const SERVER_URL =
|
||||
import.meta.env.VITE_API_URL ?? 'http://localhost:8080';
|
||||
|
||||
/** Public base URL encoded into branch QR codes (ManageBranchesScreen only). */
|
||||
export const BRANCH_QR_BASE_URL =
|
||||
|
||||
@@ -19,6 +19,7 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
VITE_API_URL: ${VITE_API_URL:-http://localhost:8080}
|
||||
VITE_GOLD_PRICE_URL: ${VITE_GOLD_PRICE_URL:-https://apiujrah.erahn.com.my/api/harga_emas}
|
||||
container_name: qms-fe-teller
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
|
||||
@@ -3,7 +3,8 @@ FROM node:20-bookworm AS build
|
||||
WORKDIR /app
|
||||
|
||||
ARG VITE_API_URL=http://localhost:8080
|
||||
ARG VITE_GOLD_PRICE_URL
|
||||
ARG VITE_GOLD_PRICE_URL=https://apiujrah.erahn.com.my/api/harga_emas
|
||||
|
||||
ENV VITE_API_URL=$VITE_API_URL
|
||||
ENV VITE_GOLD_PRICE_URL=$VITE_GOLD_PRICE_URL
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
export const SERVER_URL =
|
||||
import.meta.env.VITE_API_URL ?? 'http://localhost:8080';
|
||||
export const SERVER_URL = import.meta.env.VITE_API_URL || 'http://localhost:8080';
|
||||
|
||||
export const GOLD_PRICE_URL =
|
||||
import.meta.env.VITE_GOLD_PRICE_URL ??
|
||||
'https://apiujrah.erahn.com.my/api/harga_emas';
|
||||
export const GOLD_PRICE_URL = import.meta.env.VITE_GOLD_PRICE_URL || 'https://apiujrah.erahn.com.my/api/harga_emas';
|
||||
|
||||
export const ROLES = {
|
||||
ROLE_USER: 'ROLE_USER',
|
||||
|
||||
Reference in New Issue
Block a user