github.com/olivere/camlistore@v0.0.0-20140121221811-1b7ac2da0199/pkg/serverconfig/testdata/with_blog-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  		"/blog/": {
    16  			"handler": "publish",
    17  			"handlerArgs": {
    18  				"blobRoot": "/bs-and-maybe-also-index/",
    19  				"cache": "/cache/",
    20  				"css": [
    21  					"blog-purple.css"
    22  				],
    23  				"goTemplate": "blog.html",
    24  				"rootName": "blogRoot",
    25  				"rootPermanode": [
    26  					"/sighelper/",
    27  					"sha1-xxxxx"
    28  				],
    29  				"scaledImage": {
    30  					"type": "kv",
    31  					"file": "/tmp/camli-cache/thumbnails.kv"
    32               	},
    33  				"searchRoot": "/my-search/"
    34  			}
    35  		},
    36  		"/bs-and-index/": {
    37  			"handler": "storage-replica",
    38  			"handlerArgs": {
    39  				"backends": [
    40  					"/bs/",
    41  					"/index-kv/"
    42  				]
    43  			}
    44  		},
    45  		"/bs-and-maybe-also-index/": {
    46  			"handler": "storage-cond",
    47  			"handlerArgs": {
    48  				"read": "/bs/",
    49  				"write": {
    50  					"else": "/bs/",
    51  					"if": "isSchema",
    52  					"then": "/bs-and-index/"
    53  				}
    54  			}
    55  		},
    56  		"/bs/": {
    57  			"handler": "storage-filesystem",
    58  			"handlerArgs": {
    59  				"path": "/tmp/blobs"
    60  			}
    61  		},
    62  		"/cache/": {
    63  			"handler": "storage-filesystem",
    64  			"handlerArgs": {
    65  				"path": "/tmp/blobs/cache"
    66  			}
    67  		},
    68  		"/index-kv/": {
    69  			"handler": "storage-kvfileindexer",
    70  			"handlerArgs": {
    71  				"blobSource": "/bs/",
    72  				"file": "/path/to/indexkv.db"
    73  			}
    74  		},
    75  		"/my-search/": {
    76  			"handler": "search",
    77  			"handlerArgs": {
    78  				"index": "/index-kv/",
    79  				"owner": "sha1-f2b0b7da718b97ce8c31591d8ed4645c777f3ef4",
    80  				"slurpToMemory": true
    81  			}
    82  		},
    83  		"/setup/": {
    84  			"handler": "setup"
    85  		},
    86  		"/share/": {
    87  			"handler": "share",
    88  			"handlerArgs": {
    89  				"blobRoot": "/bs/"
    90  			}
    91  		},
    92  		"/sighelper/": {
    93  			"handler": "jsonsign",
    94  			"handlerArgs": {
    95  				"keyId": "26F5ABDA",
    96  				"publicKeyDest": "/bs-and-index/",
    97  				"secretRing": "/path/to/secring"
    98  			}
    99  		},
   100  		"/status/": {
   101  			"handler": "status"
   102  		},
   103  		"/sync/": {
   104  			"handler": "sync",
   105  			"handlerArgs": {
   106  				"from": "/bs/",
   107  				"queue": {
   108  					"file": "/tmp/blobs/sync-to-index-queue.kv",
   109  					"type": "kv"
   110  				},
   111  				"to": "/index-kv/"
   112  			}
   113  		},
   114  		"/ui/": {
   115  			"handler": "ui",
   116  			"handlerArgs": {
   117  				"cache": "/cache/",
   118  				"jsonSignRoot": "/sighelper/",
   119  				"publishRoots": [
   120  					"/blog/"
   121  				],
   122  				"scaledImage": {
   123  					"file": "/tmp/blobs/thumbmeta.kv",
   124  					"type": "kv"
   125  				}
   126  			}
   127  		}
   128  	}
   129  }