github.com/olivere/camlistore@v0.0.0-20140121221811-1b7ac2da0199/pkg/serverconfig/testdata/google_nolocaldisk-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-kv/"
    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-googlecloudstorage",
    37  			"handlerArgs": {
    38  				"auth": {
    39  					"client_id": "clientId",
    40  					"client_secret": "clientSecret",
    41  					"refresh_token": "refreshToken"
    42  				},
    43  				"bucket": "bucketName"
    44  			}
    45  		},
    46  		"/cache/": {
    47  			"handler": "storage-filesystem",
    48  			"handlerArgs": {
    49  				"path": "/tmp/camli-cache"
    50  			}
    51  		},
    52  		"/index-kv/": {
    53  			"handler": "storage-kvfileindexer",
    54  			"handlerArgs": {
    55  				"blobSource": "/bs/",
    56  				"file": "/path/to/indexkv.db"
    57  			}
    58  		},
    59  		"/my-search/": {
    60  			"handler": "search",
    61  			"handlerArgs": {
    62  				"index": "/index-kv/",
    63  				"owner": "sha1-f2b0b7da718b97ce8c31591d8ed4645c777f3ef4",
    64  				"slurpToMemory": true
    65  			}
    66  		},
    67  		"/setup/": {
    68  			"handler": "setup"
    69  		},
    70  		"/share/": {
    71  			"handler": "share",
    72  			"handlerArgs": {
    73  				"blobRoot": "/bs/"
    74  			}
    75  		},
    76  		"/sighelper/": {
    77  			"handler": "jsonsign",
    78  			"handlerArgs": {
    79  				"keyId": "26F5ABDA",
    80  				"publicKeyDest": "/bs-and-index/",
    81  				"secretRing": "/path/to/secring"
    82  			}
    83  		},
    84  		"/status/": {
    85  			"handler": "status"
    86  		},
    87  		"/sync/": {
    88  			"handler": "sync",
    89  			"handlerArgs": {
    90  				"from": "/bs/",
    91  				"idle": true,
    92  				"to": "/index-kv/"
    93  			}
    94  		},
    95  		"/ui/": {
    96  			"handler": "ui",
    97  			"handlerArgs": {
    98  				"cache": "/cache/",
    99  				"jsonSignRoot": "/sighelper/"
   100  			}
   101  		}
   102  	}
   103  }