Skip to content

Commit

Permalink
fix(prod): enable new env vars for working prod build build_image
Browse files Browse the repository at this point in the history
  • Loading branch information
brucetony committed Aug 18, 2024
1 parent 555ca57 commit cd6bfa9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ jobs:
file: ./Dockerfile
push: true
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }},ghcr.io/privateaim/node-ui:latest
tags: ${{ steps.meta.outputs.tags }},ghcr.io/privateaim/node-ui:prod
labels: ${{ steps.meta.outputs.labels }}

14 changes: 9 additions & 5 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,20 @@ export default defineNuxtConfig({
clientSecret: process.env
.NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_SECRET as string,
redirectUri:
process.env.NUXT_PUBLIC_BASE_URL + "/auth/keycloak/callback",
exposeAccessToken: true,
process.env.NUXT_PUBLIC_BASE_URL + "/auth/keycloak/callback" ||
process.env.NUXT_OIDC_PROVIDERS_KEYCLOAK_REDIRECT_URI,
// The auth is different since that is accessed via a frontend client
authorizationUrl:
process.env.KEYCLOAK_LOGIN_URL + "/protocol/openid-connect/auth",
process.env.KEYCLOAK_LOGIN_URL + "/protocol/openid-connect/auth" ||
process.env.NUXT_OIDC_PROVIDERS_KEYCLOAK_AUTHORIZATION_URL,
tokenUrl:
process.env.KEYCLOAK_SERVICE_URL + "/protocol/openid-connect/token",
process.env.KEYCLOAK_SERVICE_URL + "/protocol/openid-connect/token" ||
process.env.NUXT_OIDC_PROVIDERS_KEYCLOAK_TOKEN_URL,
userinfoUrl:
process.env.KEYCLOAK_SERVICE_URL +
"/protocol/openid-connect/userinfo",
"/protocol/openid-connect/userinfo" ||
process.env.NUXT_OIDC_PROVIDERS_KEYCLOAK_USERINFO_URL,
exposeAccessToken: true,
pkce: false,
},
},
Expand Down

0 comments on commit cd6bfa9

Please sign in to comment.