github.com/slspeek/camlistore_namedsearch@v0.0.0-20140519202248-ed6f70f7721a/pkg/serverinit/testdata/with_sourceroot-want.json (about)

     1  {
     2  	"auth": "userpass:camlistore:pass3179",
     3  	"https": false,
     4  	"listen": "localhost:3179",
     5  	"prefixes": {
     6  		"/": {
     7  			"handler": "root",
     8  			"handlerArgs": {
     9  				"blobRoot": "/bs-and-maybe-also-index/",
    10  				"searchRoot": "/my-search/",
    11  				"statusRoot": "/status/",
    12  				"stealth": false
    13  			}
    14  		},
    15  		"/bs-and-index/": {
    16  			"handler": "storage-replica",
    17  			"handlerArgs": {
    18  				"backends": [
    19  					"/bs/",
    20  					"/index/"
    21  				]
    22  			}
    23  		},
    24  		"/bs-and-maybe-also-index/": {
    25  			"handler": "storage-cond",
    26  			"handlerArgs": {
    27  				"read": "/bs/",
    28  				"write": {
    29  					"else": "/bs/",
    30  					"if": "isSchema",
    31  					"then": "/bs-and-index/"
    32  				}
    33  			}
    34  		},
    35  		"/bs/": {
    36  			"handler": "storage-filesystem",
    37  			"handlerArgs": {
    38  				"path": "/tmp/blobs"
    39  			}
    40  		},
    41  		"/cache/": {
    42  			"handler": "storage-filesystem",
    43  			"handlerArgs": {
    44  				"path": "/tmp/blobs/cache"
    45  			}
    46  		},
    47  		"/importer/": {
    48  			"handler": "importer",
    49  			"handlerArgs": {}
    50  		},
    51  		"/index/": {
    52  			"handler": "storage-index",
    53  			"handlerArgs": {
    54  				"blobSource": "/bs/",
    55  				"storage": {
    56  					"file": "/path/to/indexkv.db",
    57  					"type": "kv"
    58  				}
    59  			}
    60  		},
    61  		"/my-search/": {
    62  			"handler": "search",
    63  			"handlerArgs": {
    64  				"index": "/index/",
    65  				"owner": "sha1-f2b0b7da718b97ce8c31591d8ed4645c777f3ef4",
    66  				"slurpToMemory": true
    67  			}
    68  		},
    69  		"/setup/": {
    70  			"handler": "setup"
    71  		},
    72  		"/share/": {
    73  			"handler": "share",
    74  			"handlerArgs": {
    75  				"blobRoot": "/bs/"
    76  			}
    77  		},
    78  		"/sighelper/": {
    79  			"handler": "jsonsign",
    80  			"handlerArgs": {
    81  				"keyId": "26F5ABDA",
    82  				"publicKeyDest": "/bs-and-index/",
    83  				"secretRing": "/path/to/secring"
    84  			}
    85  		},
    86  		"/status/": {
    87  			"handler": "status"
    88  		},
    89  		"/sto-s3/": {
    90  			"handler": "storage-s3",
    91  			"handlerArgs": {
    92  				"aws_access_key": "key",
    93  				"aws_secret_access_key": "secret",
    94  				"bucket": "bucket"
    95  			}
    96  		},
    97  		"/sync-to-s3/": {
    98  			"handler": "sync",
    99  			"handlerArgs": {
   100  				"from": "/bs/",
   101  				"queue": {
   102  					"file": "/tmp/blobs/sync-to-s3-queue.kv",
   103  					"type": "kv"
   104  				},
   105  				"to": "/sto-s3/"
   106  			}
   107  		},
   108  		"/sync/": {
   109  			"handler": "sync",
   110  			"handlerArgs": {
   111  				"from": "/bs/",
   112  				"queue": {
   113  					"file": "/tmp/blobs/sync-to-index-queue.kv",
   114  					"type": "kv"
   115  				},
   116  				"to": "/index/"
   117  			}
   118  		},
   119  		"/ui/": {
   120  			"handler": "ui",
   121  			"handlerArgs": {
   122  				"cache": "/cache/",
   123  				"jsonSignRoot": "/sighelper/",
   124  				"scaledImage": {
   125  					"file": "/tmp/blobs/thumbmeta.kv",
   126  					"type": "kv"
   127  				},
   128  				"sourceRoot": "/path/to/alternative/camli/source"
   129  			}
   130  		}
   131  	}
   132  }