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