mirror of
https://github.com/zoriya/flood.git
synced 2026-06-07 04:15:06 +00:00
server: allow Flood not to serve static assets
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user