github.com/slspeek/camlistore_namedsearch@v0.0.0-20140519202248-ed6f70f7721a/pkg/test/testdata/server-config.json (about)

     1  { "_for-emacs": "-*- mode: js2;-*-",
     2    "handlerConfig": true,
     3    "https": false,
     4    "baseURL": ["_env", "${CAMLI_BASE_URL}"],
     5    "auth": "userpass:testuser:passTestWorld:+localhost",
     6    "prefixes": {
     7       "/": {
     8           "handler": "root",
     9           "handlerArgs": {
    10               "ownerName": "test",
    11               "blobRoot": "/bs-and-maybe-also-index/",
    12               "statusRoot": "/status/",
    13               "searchRoot": "/my-search/",
    14               "stealth": false
    15           }
    16       },
    17  
    18        "/bs-and-index/": {
    19            "handler": "storage-replica",
    20            "handlerArgs": {
    21                "backends": ["/bs/", "/index-mem/"]
    22            }
    23        },
    24  
    25        "/no-http-storage/": {
    26            "internal": true,
    27            "handler": "storage-replica",
    28            "handlerArgs": {
    29                "backends": ["/bs/"]
    30            }
    31        },
    32  
    33        "/no-http-handler/": {
    34            "internal": true,
    35            "handler": "status"
    36        },
    37  
    38        "/bs-and-maybe-also-index/": {
    39            "handler": "storage-cond",
    40            "handlerArgs": {
    41                "write": {
    42                    "if": "isSchema",
    43                    "then": "/bs-and-index/",
    44                    "else": "/bs/"
    45                },
    46                "read": "/bs/"
    47            }
    48        },
    49  
    50       "/bs/": {
    51           "handler": "storage-filesystem",
    52           "handlerArgs": {
    53              "path": ["_env", "${CAMLI_ROOT}"]
    54            }
    55       },
    56  
    57        "/sighelper/": {
    58            "handler": "jsonsign",
    59            "handlerArgs": {
    60                "secretRing": ["_env", "${CAMLI_SECRET_RING}"],
    61                "keyId": "26F5ABDA",
    62                "publicKeyDest": "/bs/"
    63            }
    64       },
    65  
    66       "/index-mem/": {
    67           "handler": "storage-memory-only-dev-indexer",
    68           "handlerArgs": {
    69               "blobSource": "/bs/"
    70           }
    71       },
    72  
    73       "/my-search/": {
    74           "handler": "search",
    75           "handlerArgs": {
    76               "index": "/index-mem/",
    77               "owner": "sha1-f2b0b7da718b97ce8c31591d8ed4645c777f3ef4"
    78           }
    79       }
    80    }
    81  }