github.com/slspeek/camlistore_namedsearch@v0.0.0-20140519202248-ed6f70f7721a/pkg/serverinit/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/"
    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  		"/importer/": {
    51  			"handler": "importer",
    52  			"handlerArgs": {}
    53  		},
    54  		"/index/": {
    55  			"handler": "storage-index",
    56  			"handlerArgs": {
    57  				"blobSource": "/bs/",
    58  				"storage": {
    59  					"file": "/path/to/indexkv.db",
    60  					"type": "kv"
    61  				}
    62  			}
    63  		},
    64  		"/my-search/": {
    65  			"handler": "search",
    66  			"handlerArgs": {
    67  				"index": "/index/",
    68  				"owner": "sha1-f2b0b7da718b97ce8c31591d8ed4645c777f3ef4",
    69  				"slurpToMemory": true
    70  			}
    71  		},
    72  		"/setup/": {
    73  			"handler": "setup"
    74  		},
    75  		"/share/": {
    76  			"handler": "share",
    77  			"handlerArgs": {
    78  				"blobRoot": "/bs/"
    79  			}
    80  		},
    81  		"/sighelper/": {
    82  			"handler": "jsonsign",
    83  			"handlerArgs": {
    84  				"keyId": "26F5ABDA",
    85  				"publicKeyDest": "/bs-and-index/",
    86  				"secretRing": "/path/to/secring"
    87  			}
    88  		},
    89  		"/status/": {
    90  			"handler": "status"
    91  		},
    92  		"/sync/": {
    93  			"handler": "sync",
    94  			"handlerArgs": {
    95  				"from": "/bs/",
    96  				"queue": {
    97  					"file": "/path/to/sync-to-index-queue.kv",
    98  					"type": "kv"
    99  				},
   100  				"to": "/index/"
   101  			}
   102  		},
   103  		"/ui/": {
   104  			"handler": "ui",
   105  			"handlerArgs": {
   106  				"cache": "/cache/",
   107  				"jsonSignRoot": "/sighelper/"
   108  			}
   109  		}
   110  	}
   111  }