github.com/olivere/camlistore@v0.0.0-20140121221811-1b7ac2da0199/pkg/serverconfig/testdata/flickr-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-kv/"
    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-flickr/": {
    49  			"handler": "importer-flickr",
    50  			"handlerArgs": {
    51  				"apiKey": "monkey:balls"
    52  			}
    53  		},
    54  		"/index-kv/": {
    55  			"handler": "storage-kvfileindexer",
    56  			"handlerArgs": {
    57  				"blobSource": "/bs/",
    58  				"file": "/path/to/indexkv.db"
    59  			}
    60  		},
    61  		"/my-search/": {
    62  			"handler": "search",
    63  			"handlerArgs": {
    64  				"index": "/index-kv/",
    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  		"/sync/": {
    90  			"handler": "sync",
    91  			"handlerArgs": {
    92  				"from": "/bs/",
    93  				"queue": {
    94  					"file": "/tmp/blobs/sync-to-index-queue.kv",
    95  					"type": "kv"
    96  				},
    97  				"to": "/index-kv/"
    98  			}
    99  		},
   100  		"/ui/": {
   101  			"handler": "ui",
   102  			"handlerArgs": {
   103  				"cache": "/cache/",
   104  				"jsonSignRoot": "/sighelper/",
   105  				"scaledImage": {
   106  					"file": "/tmp/blobs/thumbmeta.kv",
   107  					"type": "kv"
   108  				}
   109  			}
   110  		}
   111  	}
   112  }