Comment on page
The router can be debugged and tested in multiple ways.
Instead of letting the router fetch the config from the platform, you can also point to a local file. This is handy for local development. Your production config can be fetched by running wgc router fetch or wgc router compose to generate a router config without the need to interact with the controlplane.
docker run \
-e ROUTER_CONFIG_PATH=/app/config.json \
-v ./config.json:/app/config.json \
--env-file ./.env router
The command above will mount your local file
config.jsoninto the router's working directory.
--env-fileallows you to specify all environment variables in your
.envfile instead of passing all of them through
Enable debug mode by setting the environment variable