Nakama context envs

On this official guide Nakama: Custom Authentication with Third-Party Services | Heroic Labs Documentation

I see something like:

const apiUrl = ctx.env['AUTHENTICATION_API_URL'];

How do I set this ctx.env? Which would be the best approach for having this env declared in a docker-compose file and taking it into Nakama?


Hello @matiasvillanueva

You can find more information about the runtime context’s env here (A table of key/value pairs which are defined in the YAML configuration of the server.). Please check the page for more details.