diff --git a/pkg/serverconfig/genconfig.go b/pkg/serverconfig/genconfig.go index 1f13de028..bd9242fd7 100644 --- a/pkg/serverconfig/genconfig.go +++ b/pkg/serverconfig/genconfig.go @@ -44,6 +44,7 @@ type configPrefixesParams struct { blobPath string searchOwner blob.Ref shareHandlerPath string + flickr map[string]interface{} } var ( @@ -444,6 +445,13 @@ func genLowLevelPrefixes(params *configPrefixesParams, ownerName string) (m json } } + if params.flickr != nil { + m["/importer-flickr/"] = map[string]interface{}{ + "handler": "importer-flickr", + "handlerArgs": params.flickr, + } + } + if haveIndex { syncArgs := map[string]interface{}{ "from": "/bs/", @@ -530,6 +538,9 @@ func genLowLevelConfig(conf *Config) (lowLevelConf *Config, err error) { sqliteFile = conf.OptionalString("sqlite", "") kvFile = conf.OptionalString("kvIndexFile", "") + // Importer options + flickr = conf.OptionalObject("flickr") + _ = conf.OptionalList("replicateTo") publish = conf.OptionalObject("publish") // alternative source tree, to override the embedded ui and/or closure resources. @@ -638,6 +649,7 @@ func genLowLevelConfig(conf *Config) (lowLevelConf *Config, err error) { blobPath: blobPath, searchOwner: blob.SHA1FromString(armoredPublicKey), shareHandlerPath: shareHandlerPath, + flickr: flickr, } prefixes := genLowLevelPrefixes(prefixesParams, ownerName) diff --git a/website/content/docs/server-config b/website/content/docs/server-config index 18cc8b651..fa08b0f1a 100644 --- a/website/content/docs/server-config +++ b/website/content/docs/server-config @@ -23,6 +23,8 @@ web browser and restart the server.
baseURL
: Optional. If non-empty, this is the root of your URL prefix for your Camlistore server. Useful for when running behind a reverse proxy. Should not end in a slash. e.g. https://yourserver.example.com
flickr
: Optional, and doesn't do anything yet. Support for continuous import from Flickr. Enter two child keys: appKey
and appSecret
, which you can get by filling out this form.https
: if "true", HTTPS is used
HTTPSCertFile
: if using https