set key cloak env

This commit is contained in:
Kittapath 2023-10-16 00:31:36 +07:00
parent f0a06f3d11
commit 0a311fdddf
3 changed files with 11 additions and 5 deletions

View file

@ -8,9 +8,9 @@ import Keycloak from "keycloak-js";
const initOptions = {
// url: "https://keycloak.frappet.synology.me/auth/",
realm: "bma-ehr",
clientId: "bma-ehr-vue3",
url: "https://id.frappet.synology.me/",
realm: import.meta.env.VITE_REALM_KEYCLOAK,
clientId: import.meta.env.VITE_CLIENTID_KEYCLOAK,
url: import.meta.env.VITE_URL_KEYCLOAK,
// realm: "bma-ehr-exam",
// clientId: "bma-ehr-exam-vue3",
}; //option keycloak ที่จะ connect