2014-08-24 02:54:32 +00:00
|
|
|
{
|
|
|
|
"listen": "localhost:3179",
|
|
|
|
"https": false,
|
|
|
|
"auth": "userpass:camlistore:pass3179",
|
|
|
|
"identity": "26F5ABDA",
|
|
|
|
"identitySecretRing": "/path/to/secring",
|
|
|
|
"mysql": "root@camlistore.cloudsql.google.internal:root",
|
|
|
|
"googlecloudstorage": ":bucketName",
|
|
|
|
"shareHandler": true,
|
pkg/serverinit: remove DBNames and provide consistent default instead
DBNames is supposed to provide configuration for the various databases
names. However,
1) I contend that nobody needs or wants to configure them as long as we
provide sane defaults.
2) it seems the only obvious user we have for this is to set up some of
the names on GCE.
3) having another external source for names complicates the code
further, especially when we already have the distinction between
database names for DBMS and file names for file-based databases.
4) writing a correct documentation for it is awkward.
Therefore, in this CL, I propose that we remove DBNames. Instead,
genconfig.go now sets some consistent default names for the various
queues and indexes set up on a DBMS (MySQL, PostGres, Mongo). To that
end, we introduce the new, but optional, DBUnique configuration
parameter, that is used as a part of all the database names, in order to
be able to run several Perkeep instances on the same DBMS, without name
conflicts.
In addition, the queue for the bs->index synchandler is now set up on
the same DBMS that is already in use for the index itself, instead of
using a file-base database.
And i think we could proceed likewise for the other queues.
Fixes #951
Change-Id: Ib6a638f088a563d881e3957e4042e932382b44f4
2017-09-18 18:23:32 +00:00
|
|
|
"dbname": "camindex"
|
2014-08-24 02:54:32 +00:00
|
|
|
}
|