beyond-all-reason / teiserver

Middleware server for online gaming
https://www.beyondallreason.info/
MIT License
50 stars 47 forks source link

Make the server configurable at runtime, not compile time. #236

Closed p2004a closed 3 months ago

p2004a commented 5 months ago

Currently the server configuration is part of the build process, including the prod.secret.exs, this is very cursed for many reason:

This needs to be refactored to load configuration at runtime, when server starts, potentially also allowing to reload part of the configuration without having to restart the whole server just like it's done in many other servers that are supposed to be long running.

p2004a commented 5 months ago

Most likely need to steal by how it's done in https://github.com/Teifion/angen/blob/master/config/runtime.exs

geekingfrog commented 4 months ago

Other useful link:

geekingfrog commented 4 months ago

FYI: I started working on that

StanczakDominik commented 3 months ago

Closed by #278