Environment Variables
The server can be configured by passing in different environment variables. Here are some of them:
DISABLE_HSTS
Enabling this flag will disable HSTS from helmet. This is useful for local deployment and our desktop build so that users doesn't have to use HTTPS to access the app.
AUTO_LOGIN
Setting this to "1" will automatically create an anonymous user and use that to authenticate every client. This is useful in deployments where the concept of user is redundant like our desktop build.
ALLOW_ANY_ORIGIN
When enabled, we will relax security when being accessed from a random origin. Useful for local deployment like our desktop build.
UPLOADS_PATH
When using the file
storage, you can use this property to set the folder where the files will be saved. Otherwise, it will default to an uploads
folder in the root directory.
PLUGINS_PATH
The folder where plugins will be loaded from. The default is to a loadedPlugins
folder in the root directory.
Last updated