Home Download Docs Code Community

Configuring a client

The various clients (camput, camget, cammount…) use a common JSON config file. This page documents the configuration parameters in that file. Run camtool env clientconfig to see the default location for that file ($HOME/.config/camlistore/client-config.json on linux). In the following let $CONFIGDIR be the location returned by camtool env configdir.

Generating a default config file

Run camput init.

On unix,

cat $CONFIGDIR/client-config.json

should look something like:

{
  "identity": "43AD73B1",
  "ignoredFiles": [
    ".DS_Store"
  ],
  "servers": {
    "localhost": {
      "auth": "localhost",
      "default": true,
      "server": "http://localhost:3179"
    }
  }
}

Configuration Keys & Values

Top-level keys

Servers

servers: Each server the client connects to may have its own configuration section under an alias name as the key. The servers key is the collection of server configurations. For example:

  "servers": {
    "localhost": {
      "server": "http://localhost:3179",
      "default": true,
      "auth": "userpass:foo:bar"
    },
    "backup": {
      "server": "https://some.remote.com",
      "auth": "userpass:pony:magic",
      "trustedCerts": ["ffc7730f4b"]
    }
  }
Website layout inspired by git and memcached,
design done by up all day creative solutions.
Content by the authors.