Skip to content
Meir Noordermeer edited this page Jul 18, 2017 · 6 revisions

Example of host-folder setup

[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:

Template

{
    "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.

Clone this wiki locally