github.com/slspeek/camlistore_namedsearch@v0.0.0-20140519202248-ed6f70f7721a/pkg/serverinit/testdata/default-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  				"ownerName": "Alice",
    11  				"searchRoot": "/my-search/",
    12  				"statusRoot": "/status/",
    13  				"stealth": false
    14  			}
    15  		},
    16  		"/bs-and-index/": {
    17  			"handler": "storage-replica",
    18  			"handlerArgs": {
    19  				"backends": [
    20  					"/bs/",
    21  					"/index/"
    22  				]
    23  			}
    24  		},
    25  		"/bs-and-maybe-also-index/": {
    26  			"handler": "storage-cond",
    27  			"handlerArgs": {
    28  				"read": "/bs/",
    29  				"write": {
    30  					"else": "/bs/",
    31  					"if": "isSchema",
    32  					"then": "/bs-and-index/"
    33  				}
    34  			}
    35  		},
    36  		"/bs/": {
    37  			"handler": "storage-filesystem",
    38  			"handlerArgs": {
    39  				"path": "/tmp/blobs"
    40  			}
    41  		},
    42  		"/cache/": {
    43  			"handler": "storage-filesystem",
    44  			"handlerArgs": {
    45  				"path": "/tmp/blobs/cache"
    46  			}
    47  		},
    48  		"/importer/": {
    49  			"handler": "importer",
    50  			"handlerArgs": {}
    51  		},
    52  		"/index/": {
    53  			"handler": "storage-index",
    54  			"handlerArgs": {
    55  				"blobSource": "/bs/",
    56  				"storage": {
    57  					"file": "/path/to/indexkv.db",
    58  					"type": "kv"
    59  				}
    60  			}
    61  		},
    62  		"/my-search/": {
    63  			"handler": "search",
    64  			"handlerArgs": {
    65  				"index": "/index/",
    66  				"owner": "sha1-f2b0b7da718b97ce8c31591d8ed4645c777f3ef4",
    67  				"slurpToMemory": true
    68  			}
    69  		},
    70  		"/setup/": {
    71  			"handler": "setup"
    72  		},
    73  		"/share/": {
    74  			"handler": "share",
    75  			"handlerArgs": {
    76  				"blobRoot": "/bs/"
    77  			}
    78  		},
    79  		"/sighelper/": {
    80  			"handler": "jsonsign",
    81  			"handlerArgs": {
    82  				"keyId": "26F5ABDA",
    83  				"publicKeyDest": "/bs-and-index/",
    84  				"secretRing": "/path/to/secring"
    85  			}
    86  		},
    87  		"/status/": {
    88  			"handler": "status"
    89  		},
    90  		"/sync/": {
    91  			"handler": "sync",
    92  			"handlerArgs": {
    93  				"from": "/bs/",
    94  				"queue": {
    95  					"file": "/tmp/blobs/sync-to-index-queue.kv",
    96  					"type": "kv"
    97  				},
    98  				"to": "/index/"
    99  			}
   100  		},
   101  		"/ui/": {
   102  			"handler": "ui",
   103  			"handlerArgs": {
   104  				"cache": "/cache/",
   105  				"jsonSignRoot": "/sighelper/",
   106  				"scaledImage": {
   107  					"file": "/tmp/blobs/thumbmeta.kv",
   108  					"type": "kv"
   109  				}
   110  			}
   111  		}
   112  	}
   113  }