mrdoob / glsl-sandbox

Shader editor and gallery.
https://glslsandbox.com/
MIT License
1.56k stars 263 forks source link

server: add read only mode #92

Closed jfontan closed 9 months ago

jfontan commented 9 months ago

In read only mode the endpoint to save new effects or add new versions is deactivated. Also in the gallery the create button is deactivated and there is a notice that says:

The server is in maintenance mode. You can not create or modify effects.

read_only

The button to save effects in the editor is not deactivated as it will take a bit more time and wanted to have the page up as soon as possible.

Hopefully I've cleaned up the spam in the database and the configuration is set in the server to startup in read only mode. Merging and creating a new version should bring the service up.

jfontan commented 9 months ago

I'm merging the changes. Ping me if there is anything I should change.