server: allow Flood not to serve static assets

This commit is contained in:
Jesse Chan
2020-12-10 01:22:49 +08:00
parent 055673738a
commit 559ecaa0d8
13 changed files with 65 additions and 87 deletions
+6
View File
@@ -124,6 +124,12 @@ export const configSchema = object({
// CLI argument: --allowedpath, can be called multiple times
// Allowed paths for file operations. "undefined" means everything. [default: undefined]
allowedPaths: array(string()).optional(),
// CLI argument: --assets
// Whether Flood should serve static assets.
// Users may prefer to serve static assets via a "professional" web server such as nginx to
// increase performance or have more flexibility on compression or other options. [default: true]
serveAssets: boolean().optional(),
})
.refine(
(config) => {