nakama
nakama copied to clipboard
Ability to read config settings from Lua
As per my discussion with Mo in gitter, there should be a way to read the server config settings from Lua. Specifically, were talking about the possibility of reading the value for socket.max_message_size_bytes
so that the client could detect whether it was about to transmit a message that was too large.
There was some talk about enabling Lua to read other static data (large config files, etc.). Perhaps command-line config items could be folded together into whatever mechanism is under consideration there?
Is there a workaround for this, or plan for implementation? I need to use the configured Steam Web API key, and I'd rather not hardcode it.
You can pass in the data you need via runtime.env flag - this means it’s a bit of a duplicate but it’s trivial to have in config and non-trivial to expose config to Runtime.