nakama icon indicating copy to clipboard operation
nakama copied to clipboard

Ability to read config settings from Lua

Open Ceiyne opened this issue 7 years ago • 3 comments

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.

Ceiyne avatar Feb 16 '18 20:02 Ceiyne

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?

Renanse avatar Mar 21 '18 16:03 Renanse

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.

brianwinterpixel avatar Feb 04 '22 18:02 brianwinterpixel

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.

mofirouz avatar Feb 04 '22 18:02 mofirouz