Configure WunderNode options
This section describes how to set configurations options of WunderNode.
List of available options:
During development all options are optional and will be set via EnvironmentVariables with default values
The host on which the WunderNode should listen.
The port on which the WunderNode should listen.
This option allows you to configure the internal URL where your WunderNode will be deployed in the internal network. This is important for the WunderGraph Server to be able to comminucate with WunderNode.
nodeUrl is used in internal client requests to WunderNode in the hooks and webhooks.
This option allows you to configure the Public URL on which you WunderNode Api will be accessible. It is used for example in the generated clients, in the GraphQL playground, OpenAPI specification and Postman collection.
This option allows you to configure the logger level of WunderNode.
Options default values
Each option when unset will get a value from the
Default Environment Variables or from the default value of that variable.
|Option||Default Value||Default Environment Variable|
In case in options only
listen.port is provided, the
publicNodeUrl will be set to
Running in production
In production it is mandatory to provide:
publicNodeUrl- to have a proper configuration of generated clients, graphiql, graphqlconfig and postman collection
nodeUrl- when you want to run WunderNode in a different network/host than WunderGraph Server
You could provide it either by setting the Default Environment Variable or as a static value:
When no options were provided you still could override default values by setting WG environment variables
When using custom environment variables, you need to make sure that the environment variables are set before:
wunderctl generatecommand is executed
wunderctl node startcommand is executed
Configure options with static values
Configure options with custom environment variables
Configure options with default environment variables
This configuration illustrates what options you will get when options are not provided via the config.
By using default environment variables names you could stick with Wundergraph Default behaviour but supply different default values.