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