-
Notifications
You must be signed in to change notification settings - Fork 1
Config
Meir Noordermeer edited this page Jul 18, 2017
·
6 revisions
[host-folder]
├── config.json
├── db
├── storage
└── auth.js
Use the following template to create your config.json file. Storage is a subdirectory of workDir.
Notes:
- The path to the auth-adapter is not a sub-path.
- If you are going to use Docker then leave the workDir at
"/ap-npm"
and mount a folder from your host filesystem.
{
"workDir": "/ap-npm",
"storage": {
"directory": "/storage"
},
"port": 4444,
"hostname": "0.0.0.0",
"proxyEnabled": false,
"proxyUrl": "https://registry.npmjs.org",
"auth": {
"adapter": "/auth/json-db",
"users": {
"canPublish": true,
"canAccess": true
},
"register": true,
"public": false,
"remove": true
},
"ssl": {
"enabled": true,
"key": "/ssl/sslkey.key",
"cert": "/ssl/sslcert.crt"
}
}
Note: leave the hostname for what it is for now. Changing this doesn't work yet.