GEWIS / sudosos-backend

SudoSOS is a Node.js-based Bar and POS system made for study association GEWIS.
https://sudosos.gewis.nl
GNU Affero General Public License v3.0
6 stars 3 forks source link

[Feature] Maintenance mode #280

Closed JustSamuel closed 2 months ago

JustSamuel commented 2 months ago

What would you like?

Disable SudoSOS for all non admins as a toggle

Why is this needed?

I don’t want people to mess with SudoSOS during migrations

How could it be implemented?

Add a “maintenance mode” server setting, a middle ware to check and block request if enabled and a endpoint to toggle

Other information

No response

rinkp commented 2 months ago

This should be a 503 Service Unavailable. Preferably, also include a Retry-After header and a visual indication of the time in the response, but that requires this information to also be stored somewhere