76 lines
1.8 KiB
JSON
76 lines
1.8 KiB
JSON
{
|
|
"version": 2,
|
|
"outputCapture": "direct-nodejs",
|
|
"title": "File Server",
|
|
"description": "Serve a web application from a folder.",
|
|
"type": "object",
|
|
"cli": "nx",
|
|
"properties": {
|
|
"buildTarget": {
|
|
"type": "string",
|
|
"description": "Target which builds the application."
|
|
},
|
|
"parallel": {
|
|
"type": "boolean",
|
|
"description": "Build the target in parallel.",
|
|
"default": true
|
|
},
|
|
"maxParallel": {
|
|
"type": "number",
|
|
"description": "Max number of parallel jobs."
|
|
},
|
|
"port": {
|
|
"type": "number",
|
|
"description": "Port to listen on.",
|
|
"default": 4200
|
|
},
|
|
"host": {
|
|
"type": "string",
|
|
"description": "Host to listen on.",
|
|
"default": "localhost"
|
|
},
|
|
"ssl": {
|
|
"type": "boolean",
|
|
"description": "Serve using `HTTPS`.",
|
|
"default": false
|
|
},
|
|
"sslKey": {
|
|
"type": "string",
|
|
"description": "SSL key to use for serving `HTTPS`."
|
|
},
|
|
"sslCert": {
|
|
"type": "string",
|
|
"description": "SSL certificate to use for serving `HTTPS`."
|
|
},
|
|
"proxyUrl": {
|
|
"type": "string",
|
|
"description": "URL to proxy unhandled requests to."
|
|
},
|
|
"proxyOptions": {
|
|
"type": "object",
|
|
"description": "Options for the proxy used by `http-server`.",
|
|
"default": {},
|
|
"properties": {
|
|
"secure": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
},
|
|
"watch": {
|
|
"type": "boolean",
|
|
"description": "Watch for file changes.",
|
|
"default": false
|
|
},
|
|
"spa": {
|
|
"type": "boolean",
|
|
"description": "Redirect 404 errors to index.html (useful for SPA's).",
|
|
"default": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["buildTarget"],
|
|
"examplesFile": "../../../docs/file-server-examples.md"
|
|
}
|