This section describes how to set configurations options of WunderGraph Server.
List of available options:
During development all options are optional and will be set via
new EnvironmentVariable with default values
The host on which the WunderGraph Server should listen.
The port on which the WunderGraph Server should listen.
This option allows you to configure the URL where your WunderGraph Server will be deployed. This is important for the WunderNode to be able to communicate with WunderGraph Server. If no value is provided,
listen.port will be used to generate the URL.
This option allows you to configure the logger level of WunderGraph Server.
This option indicates whether OpenTelemetry tracing should be enabled.
This option allows you to configure the OpenTelemetry sampler. The default sampler is 1.0, which means that all requests will be sampled. You need to provide a number between 0.0 and 1.0 to configure the sampler.
This option allows you to configure the OpenTelemetry HTTP exporter endpoint. The default endpoint is
http://localhost:4318. The current supported OTLP endpoint is set fixed to
This option allows you to configure the OpenTelemetry HTTP exporter with an authentication token. Currently, we only support JWT authentication in combination with our JWT authenticator plugin.
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|
Running in production
If you run the server and node in standalone mode, it is mandatory to provide
serverUrl, because WunderNode needs to know where the WunderGraph server is deployed.
You could provide it either by setting the Default Environment Variable
WG_SERVER_URL or as a static value.
When no options were provided you still could override default values by setting WG environment variables
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.