Giter Site home page Giter Site logo

Comments (3)

CodeNameNinja avatar CodeNameNinja commented on June 12, 2024 1

Make NODE_ENV production seemed to resolve my issue

from vue-scaffold.

jujaga avatar jujaga commented on June 12, 2024

Hi @CodeNameNinja,

The Keycloak is misconfigured error likely means that you haven't supplied all the custom environment variables necessary for the application to run. The custom-environment-variables.json file provides a complete mapping of ENV variables to the config that the node application will see, and the default.json provides generic defaults for all non-sensitive config values. If you are running this on a local machine, you'll need to create a local.json file the values you want set in the same directory as custom-environment-variables.json. For more information on how the config library loads and searches for environment variables, take a look at this article: https://github.com/lorenwest/node-config/wiki/Configuration-Files.

At an absolute bare minimum, you will want your local.json to at least have the following values defined:

{
  "frontend": {
    "keycloak": {
      "clientId": "REDACTED",
      "realm": "REDACTED"
    }
  },
  "server": {
    "keycloak": {
      "clientId": "REDACTED",
      "publicKey": "REDACTED",
      "realm": "REDACTED",
      "clientSecret": "REDACTED"
    },
    "logLevel": "debug",
    "morganFormat": "dev"
  }
}

You may need more configured depending on your own personal environments. Hope that helps.

from vue-scaffold.

CodeNameNinja avatar CodeNameNinja commented on June 12, 2024

No this did not work
its still complaining that keycloak is misconfigured

{
"frontend": {
"keycloak": {
"clientId": "REDACTED",
"realm": "REDACTED",
"serverUrl": "REDACTED"
}
},
"server": {
"apiPath": "/api/v1",
"baseUrl": "http://localhost:8080",
"basePath" : "/",
"bodyLimit": "30mb",
"keycloak": {
"clientId": "REDACTEDt",
"clientSecret": "REDACTED",
"serverUrl": "REDACTED",
"realm": "REDACTED"
},
"logLevel": "debug",
"morganFormat": "combined",
"port": "8080"
}
}

this is essentially what I have in my default.json and custom-environment-variables.json

from vue-scaffold.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.