Comments (3)
Make NODE_ENV production seemed to resolve my issue
from vue-scaffold.
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.
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)
- Lets use common phrasing
- Add project lifecycle badge
- Configuration guide needed HOT 4
- Add missing topics
- crbug/1173575, non-JS module files deprecated. HOT 2
- It's Been a While Since This Repository has Been Updated HOT 1
- It's Been a While Since This Repository has Been Updated
- It's Been a While Since This Repository has Been Updated
- It's Been a While Since This Repository has Been Updated
- Keycloak setup HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-scaffold.