github.com/olivere/camlistore@v0.0.0-20140121221811-1b7ac2da0199/pkg/serverconfig/testdata/sqlite-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-sqlite/"
    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  		"/index-sqlite/": {
    48  			"handler": "storage-sqliteindexer",
    49  			"handlerArgs": {
    50  				"blobSource": "/bs/",
    51  				"file": "/tmp/camli.db"
    52  			}
    53  		},
    54  		"/my-search/": {
    55  			"handler": "search",
    56  			"handlerArgs": {
    57  				"index": "/index-sqlite/",
    58  				"owner": "sha1-f2b0b7da718b97ce8c31591d8ed4645c777f3ef4",
    59  				"slurpToMemory": true
    60  			}
    61  		},
    62  		"/setup/": {
    63  			"handler": "setup"
    64  		},
    65  		"/share/": {
    66  			"handler": "share",
    67  			"handlerArgs": {
    68  				"blobRoot": "/bs/"
    69  			}
    70  		},
    71  		"/sighelper/": {
    72  			"handler": "jsonsign",
    73  			"handlerArgs": {
    74  				"keyId": "26F5ABDA",
    75  				"publicKeyDest": "/bs-and-index/",
    76  				"secretRing": "/path/to/secring"
    77  			}
    78  		},
    79  		"/status/": {
    80  			"handler": "status"
    81  		},
    82  		"/sync/": {
    83  			"handler": "sync",
    84  			"handlerArgs": {
    85  				"from": "/bs/",
    86  				"queue": {
    87  					"file": "/tmp/blobs/sync-to-index-queue.kv",
    88  					"type": "kv"
    89  				},
    90  				"to": "/index-sqlite/"
    91  			}
    92  		},
    93  		"/ui/": {
    94  			"handler": "ui",
    95  			"handlerArgs": {
    96  				"cache": "/cache/",
    97  				"jsonSignRoot": "/sighelper/",
    98  				"scaledImage": {
    99  					"file": "/tmp/blobs/thumbmeta.kv",
   100  					"type": "kv"
   101  				}
   102  			}
   103  		}
   104  	}
   105  }