Closed JesusWithPants closed 2 years ago
It's kind of funny, this was mainly meant for people to really dig into the code mainly as a reason to avoid people from unnecessarily sending off requests to public panels. I suppose this is something that should be updated though since we do have ways of controlling this on the API side now.
Will look into this, thanks!
As a good way to do this and prevent people to simply send demo-upload requests would be if G5API/G5V web-panel auto-includes in its config-generator get5_upload_demos 1
as a CVAR if uploadDemos
variable is set (at-least in Docker Compose) or check-mark under game server settings that can be toggled if server should send back demo which in turn would add the CVAR in config
There's actually a check on the API end with that UPLOAD_DEMOS flag that will return a 413 if we are not allowing demo uploads, so something like that usually works fairly nicely, especially in a public instance. If you want, you can use a season and set it as a default CVAR, too :)
Yes, but would be nice to have a native solution for those who just want to spin up their own instances and not bash heads against the table trying to figure out wherein lies the fault of "no demos are uploaded" (Yes, my desk is still in one piece) 😆 Or atleast some documentation 🤷
Fair point, I may consider just flipping this option to 1 as well, since this was before I had a limiter on the API side. I'll think about it! :)
Spending months on/off trying to figure out why match DEMOs would not upload, turns out - missing a cvar
get5_upload_demos 1
.Please update README or Wiki with cvars and their default/possible values for other people sake :)