2020-10-23 15:05:46 -05:00
|
|
|
import { Config } from '@verdaccio/types';
|
|
|
|
|
|
|
|
const config: Config = {
|
|
|
|
user_agent: 'string',
|
|
|
|
server_id: 1234,
|
|
|
|
secret: '12345',
|
2020-11-08 09:20:02 -05:00
|
|
|
config_path: './nowhere',
|
2020-10-23 15:05:46 -05:00
|
|
|
uplinks: {
|
|
|
|
npmjs: {
|
|
|
|
url: 'https://registry.npmjs.org/',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
security: {
|
|
|
|
web: {
|
|
|
|
sign: {},
|
|
|
|
verify: {},
|
|
|
|
},
|
|
|
|
api: {
|
|
|
|
legacy: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
packages: {
|
|
|
|
test: {
|
|
|
|
storage: '',
|
|
|
|
publish: [''],
|
|
|
|
proxy: [''],
|
|
|
|
access: [''],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
web: {
|
|
|
|
enable: true,
|
|
|
|
title: 'string',
|
|
|
|
logo: 'string',
|
|
|
|
},
|
2022-03-28 13:02:08 -05:00
|
|
|
log: {},
|
2020-10-23 15:05:46 -05:00
|
|
|
auth: {},
|
|
|
|
notifications: {
|
|
|
|
method: '',
|
|
|
|
packagePattern: /a/,
|
|
|
|
packagePatternFlags: '',
|
|
|
|
headers: {},
|
|
|
|
endpoint: '',
|
|
|
|
content: '',
|
|
|
|
},
|
|
|
|
checkSecretKey: () => '1234',
|
|
|
|
getMatchedPackagesSpec: jest.fn(),
|
|
|
|
hasProxyTo: () => false,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|