mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-17 07:45:52 +01:00
10aeb4f134
* refactor: config security refactor * chore: add changeset * chore: rename self_path to config_path on test * chore: fix test * chore: remove self_path on init
51 lines
831 B
TypeScript
51 lines
831 B
TypeScript
import { Config } from '@verdaccio/types';
|
|
|
|
const config: Config = {
|
|
user_agent: 'string',
|
|
server_id: 1234,
|
|
secret: '12345',
|
|
config_path: './nowhere',
|
|
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',
|
|
},
|
|
logs: [],
|
|
auth: {},
|
|
notifications: {
|
|
method: '',
|
|
packagePattern: /a/,
|
|
packagePatternFlags: '',
|
|
headers: {},
|
|
endpoint: '',
|
|
content: '',
|
|
},
|
|
checkSecretKey: () => '1234',
|
|
getMatchedPackagesSpec: jest.fn(),
|
|
hasProxyTo: () => false,
|
|
};
|
|
|
|
export default config;
|