mirror of https://github.com/perkeep/perkeep.git
devcam: always use blobpacked for devcam server
Maybe it can be an option in the future, but for now it's always on. Change-Id: I7ec408b145870fc7dcffa42638ebb0daf595982d
This commit is contained in:
parent
5c0e9a1fbe
commit
3e84782750
|
@ -117,9 +117,28 @@
|
|||
},
|
||||
|
||||
"/bs/": {
|
||||
"handler": "storage-blobpacked",
|
||||
"handlerArgs": {
|
||||
"smallBlobs": "/bs-loose/",
|
||||
"largeBlobs": "/bs-packed/",
|
||||
"metaIndex": {
|
||||
"type": "kv",
|
||||
"file": ["_env", "${CAMLI_ROOT}/packindex.kv"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"/bs-loose/": {
|
||||
"handler": "storage-filesystem",
|
||||
"handlerArgs": {
|
||||
"path": ["_env", "${CAMLI_ROOT}"]
|
||||
"path": ["_env", "${CAMLI_ROOT}/loose"]
|
||||
}
|
||||
},
|
||||
|
||||
"/bs-packed/": {
|
||||
"handler": "storage-filesystem",
|
||||
"handlerArgs": {
|
||||
"path": ["_env", "${CAMLI_ROOT}/packed"]
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -291,6 +291,8 @@ func (c *serverCmd) setEnvVars() error {
|
|||
c.makeSuffixdir(v)
|
||||
setenv(k, v)
|
||||
}
|
||||
c.makeSuffixdir(filepath.Join(fullSuffix("bs"), "packed"))
|
||||
c.makeSuffixdir(filepath.Join(fullSuffix("bs"), "loose"))
|
||||
setenv("CAMLI_PORT", c.port)
|
||||
if c.flickrAPIKey != "" {
|
||||
setenv("CAMLI_FLICKR_ENABLED", "true")
|
||||
|
|
Loading…
Reference in New Issue