|
1 | 1 | import { resolve, dirname } from 'path';
|
2 | 2 | import { existsSync, readFileSync } from 'fs';
|
3 |
| -import { rootDir, name, version, currentDir } from '../info'; |
| 3 | +import { name, version, currentDir } from '../info'; |
4 | 4 | import { Dict, KrasConfiguration, LogLevel } from '../types';
|
5 | 5 | import * as chalk from 'chalk';
|
6 | 6 |
|
@@ -209,14 +209,16 @@ export function mergeConfiguration(
|
209 | 209 | return result;
|
210 | 210 | }
|
211 | 211 |
|
| 212 | +const certDir = resolve(__dirname, '../../../cert'); |
| 213 | + |
212 | 214 | export const defaultConfig = {
|
213 | 215 | name: `${name} v${version}`,
|
214 | 216 | port: 9000,
|
215 | 217 | directory: resolve(currentDir, 'mocks'),
|
216 | 218 | client: 'kras-management-portal',
|
217 | 219 | ssl: {
|
218 |
| - cert: 'kras/cert/server.crt', |
219 |
| - key: 'kras/cert/server.key', |
| 220 | + cert: resolve(certDir, 'server.crt'), |
| 221 | + key: resolve(certDir, 'server.key'), |
220 | 222 | },
|
221 | 223 | uploadLimit: parseInt(process.env.FILE_SIZE_LIMIT, 10) || 10, // default: 10 MB
|
222 | 224 | logLevel: 'error',
|
|
0 commit comments