|
| 1 | +// For a detailed explanation regarding each configuration property, visit: |
| 2 | +// https://www.mocks-server.org/docs/configuration/how-to-change-settings |
| 3 | +// https://www.mocks-server.org/docs/configuration/options |
| 4 | + |
| 5 | +module.exports = { |
| 6 | + // Log level. Can be one of silly, debug, verbose, info, warn or error |
| 7 | + //log: "info", |
| 8 | + config: { |
| 9 | + // Allow unknown arguments |
| 10 | + //allowUnknownArguments: false, |
| 11 | + }, |
| 12 | + plugins: { |
| 13 | + // Plugins to be registered |
| 14 | + //register: [], |
| 15 | + proxyRoutesHandler: { |
| 16 | + }, |
| 17 | + adminApi: { |
| 18 | + // Port number for the admin API server to be listening at |
| 19 | + //port: 3110, |
| 20 | + // Host for the admin API server |
| 21 | + //host: "0.0.0.0", |
| 22 | + https: { |
| 23 | + // Use https protocol or not |
| 24 | + //enabled: false, |
| 25 | + // Path to a TLS/SSL certificate |
| 26 | + //cert: undefined, |
| 27 | + // Path to the certificate private key |
| 28 | + //key: undefined, |
| 29 | + }, |
| 30 | + }, |
| 31 | + inquirerCli: { |
| 32 | + // Start interactive CLI or not |
| 33 | + //enabled: true, |
| 34 | + // Render emojis or not |
| 35 | + //emojis: true, |
| 36 | + }, |
| 37 | + openapi: { |
| 38 | + collection: { |
| 39 | + // Name for the collection created from OpenAPI definitions |
| 40 | + //id: "openapi", |
| 41 | + // Name of the collection to extend from |
| 42 | + //from: undefined, |
| 43 | + }, |
| 44 | + }, |
| 45 | + }, |
| 46 | + mock: { |
| 47 | + routes: { |
| 48 | + // Global delay to apply to routes |
| 49 | + //delay: 0, |
| 50 | + }, |
| 51 | + collections: { |
| 52 | + // Selected collection |
| 53 | + selected: "default", |
| 54 | + }, |
| 55 | + }, |
| 56 | + server: { |
| 57 | + // Port number for the server to be listening at |
| 58 | + //port: 3100, |
| 59 | + // Host for the server |
| 60 | + //host: "0.0.0.0", |
| 61 | + cors: { |
| 62 | + // Use CORS middleware or not |
| 63 | + //enabled: true, |
| 64 | + // Options for the CORS middleware. Further information at https://github.com/expressjs/cors#configuration-options |
| 65 | + //options: {"preflightContinue":false}, |
| 66 | + }, |
| 67 | + jsonBodyParser: { |
| 68 | + // Use json body-parser middleware or not |
| 69 | + //enabled: true, |
| 70 | + // Options for the json body-parser middleware. Further information at https://github.com/expressjs/body-parser |
| 71 | + //options: {}, |
| 72 | + }, |
| 73 | + urlEncodedBodyParser: { |
| 74 | + // Use urlencoded body-parser middleware or not |
| 75 | + //enabled: true, |
| 76 | + // Options for the urlencoded body-parser middleware. Further information at https://github.com/expressjs/body-parser |
| 77 | + //options: {"extended":true}, |
| 78 | + }, |
| 79 | + https: { |
| 80 | + // Use https protocol or not |
| 81 | + //enabled: false, |
| 82 | + // Path to a TLS/SSL certificate |
| 83 | + //cert: undefined, |
| 84 | + // Path to the certificate private key |
| 85 | + //key: undefined, |
| 86 | + }, |
| 87 | + }, |
| 88 | + files: { |
| 89 | + // Allows to disable files load |
| 90 | + //enabled: true, |
| 91 | + // Define folder from where to load collections and routes |
| 92 | + //path: "mocks", |
| 93 | + // Enable/disable files watcher |
| 94 | + //watch: true, |
| 95 | + babelRegister: { |
| 96 | + // Load @babel/register |
| 97 | + //enabled: false, |
| 98 | + // Options for @babel/register |
| 99 | + //options: {}, |
| 100 | + }, |
| 101 | + }, |
| 102 | + variantHandlers: { |
| 103 | + // Variant Handlers to be registered |
| 104 | + //register: [], |
| 105 | + }, |
| 106 | +}; |
0 commit comments