<commit_before># Config

## Example

### BlobsFile and S3 with two namespaces

When using [S3](http://aws.amazon.com/s3/), ``S3_SECRET_KEY`` and ``S3_ACCESS_KEY`` environment variables must be set.

```json
{
    "backends": {
        "blobs": {
            "backend-type": "blobsfile",
            "backend-args": {
                "path": "blobs",
                "compression": true
            }
        },
        "s3": {"backend-type": "s3",
            "backend-args": {
                "bucket": "bucketname",
                "location": "eu-west-1"
            }
        }
    },
    "router": [
    	["if-ns-s3", "s3"],
        ["default", "blobs"]
    ]
}
```

### Encrypt to S3 with one namespace

The **encrypt** backup need a encryption key (used by [go.crypto/nacl secretbox](http://godoc.org/code.google.com/p/go.crypto/nacl)), defined in **key-path**, it must contains a 32 bytes (256bits) key.

```json
{
    "backends": {
        "blobs": {
            "backend-type": "encrypt",
            "backend-args": {
                "key-path": "/home/thomas/blobstash.key",
                "dest": {
                    "backend-type": "s3",
                    "backend-args": {
                        "bucket": "bucketname",
                        "location": "eu-west-1"
                    }
                }
            }
        },
        "router": [
            [
                "default",
                "blobs"
            ]
        ]
    }
}
```<commit_msg>docs: fixed config example for the encrypt backend<commit_after># Config

## Example

### BlobsFile and S3 with two namespaces

When using [S3](http://aws.amazon.com/s3/), ``S3_SECRET_KEY`` and ``S3_ACCESS_KEY`` environment variables must be set.

```json
{
    "backends": {
        "blobs": {
            "backend-type": "blobsfile",
            "backend-args": {
                "path": "blobs",
                "compression": true
            }
        },
        "s3": {"backend-type": "s3",
            "backend-args": {
                "bucket": "bucketname",
                "location": "eu-west-1"
            }
        }
    },
    "router": [
    	["if-ns-s3", "s3"],
        ["default", "blobs"]
    ]
}
```

### Encrypt to S3 with one namespace

The **encrypt** backup need a encryption key (used by [go.crypto/nacl secretbox](http://godoc.org/code.google.com/p/go.crypto/nacl)), defined in **key-path**, it must contains a 32 bytes (256bits) key.

```json
{
    "backends": {
        "blobs": {
            "backend-type": "encrypt",
            "backend-args": {
                "key-path": "/home/thomas/blobstash.key",
                "dest": {
                    "backend-type": "s3",
                    "backend-args": {
                        "bucket": "bucketname",
                        "location": "eu-west-1"
                    }
                }
            }
        }
    },
    "router": [
        [
            "default",
            "blobs"
        ]
    ]
}
```
{'fraction_non_alphanumeric': 0.1658291457286432, 'fraction_numerical': 0.012060301507537688, 'mean_word_length': 1.3511811023622047, 'pattern_counts': {'":': 46, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '601338', 'n_tokens_mistral': 952, 'n_tokens_neox': 908, 'n_words': 187}