# Local Configuration

NeuTu can be configured to connect to external services, list default databases, and define behaviors for certain databases.

## Settings Dialog

![Global Settings Dialog](https://2926737796-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ld57Fj27nUB-NnjPb7c%2F-LsqmesvJa3aZJz5-hoa%2F-Lsr-712BBq4qW8eOJ7q%2Fimage.png?alt=media\&token=96e81512-6d49-487d-a6df-613b0c246728)

### Config File

This field points to the path of the configuration file for general proofreading settings and predefined databases. The file is supposed to be a JSON file contain a JSON object. Some important fields in the JSON object include:

* `"librarian"`: address of the default librarian;
* `"neutu_server"`: address of the default neutuse server (<https://github.com/janelia-flyem/neutuse>), which should have the pattern like neutuse:http\://\<address>;
* `"neuroglancer server"`: address of the default neuroglancer server;
* `"cleave server"`: address of the server for body cleaving (<https://github.com/janelia-flyem/neuclease>);
* `"dvid repo"`: an array of predefined DVID database settings, each itself being a JSON object. A brief schema of such an object can be seen below (if "user\_name "is not specified, every user can see the settings):

{% code title="JSON schema for dvid repo entry" %}

```javascript
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "name": {
      "description": "name of the database setting",
      "type": "string"
    },
    "address": {
      "description": "host address of the DVID database",
      "type": "string"
    },
    "port": {
      "description": "port of the database",
      "type": "integer"
    },
    "uuid": {
      "description": "uuid of the DVID repo",
      "type": "string"
    },
    "segmentation": {
      "description": "name of the segmentation data",
      "type": "string"
    },
    "grayscale": {
      "description": "name of the grayscale data",
      "type": "string"
    },
    "comment": {
      "description": "comment of the database",
      "type": "string"
    },
    "user_name": {
      "description": "who can see this database setting",
      "type": "array",
      "items": [
        {
          "type": "string"
        }
      ]
    }
  },
  "required": [
    "address",
    "port",
    "uuid",
  ]
}
```

{% endcode %}

{% code title="sample flyem\_config.json" %}

```javascript
{
  "librarian": "emdata4.int.janelia.org:9100",
  "neutu_server": "neutuse:http://emdata2.int.janelia.org:2018",
  "neuroglancer server": "localhost:8080",
  "dvid repo": [
    {
      "name": "#profile#",
      "address": "emdata2.int.janelia.org",
      "port": 7000,
      "uuid": "7abe",
      "segmentation": "segmentation2",
      "grayscale": "grayscale",
      "comment": "2d merge"
    },
    {
      "address": "hackathon.janelia.org",
      "uuid": "2a31",
      "name": "FIB25-Hackathon",
      "segmentation": "segmentation",
      "grayscale": "grayscale",
      "comment": "FIB-25 export for hackathon",
      "user_name": ["user1", "user2"]
    }
  }
```

{% endcode %}

{% hint style="info" %}
To specify a config file while launching NeuTu (same for Neu3), you can use the --load command argument. For example:

neutu --load \<config\_path>

where config\_path is the path of the top-level config file, in which the candidate paths of flyem config file mentioned above can be added, such as

{  "flyem": \["../local\_flyem\_config.json", "flyem\_config.json"] }

NeuTu will try to find the default config file in the order of the array.
{% endhint %}

### Remote Service

This points to remote computing services. Currently only the skeletonization service is available. You can follow the instructions from <https://github.com/janelia-flyem/neutuse> to set up the service. The service text should become green once you apply the settings, or it means the service is not run or connected properly.

### Task Server

It sets the server for offline tasks. This one can be ignored.

### Center Cut

These numbers control the size of the high-res patch at the center of the 2D view for grayscale and segmentation data.
