syncthing/cmd/discosrv
2015-05-31 13:31:28 +02:00
..
clean.go Rewrite for a PostgreSQL backend 2015-03-25 15:37:00 +01:00
db.go Rewrite for a PostgreSQL backend 2015-03-25 15:37:00 +01:00
LICENSE GPL->MIT 2015-03-25 08:07:33 +01:00
main.go Stats files 2015-05-31 13:31:28 +02:00
querysrv.go Rewrite for a PostgreSQL backend 2015-03-25 15:37:00 +01:00
README.md Rewrite for a PostgreSQL backend 2015-03-25 15:37:00 +01:00
stats.go Stats files 2015-05-31 13:31:28 +02:00

discosrv

Latest Build

This is the global discovery server for the syncthing project.

To get it, run go get github.com/syncthing/discosrv or download the latest build from the build server.

Usage

The discovery server requires a postgresql backend server. You will need to create a database and a user with permissions to create tables in it. Set the database URL in the environment variable DISCOSRV_DB before starting discosrv.

$ export DISCOSRV_DB="postgres://user:password@localhost/databasename"
$ discosrv

The appropriate tables and indexes will be created at first startup. If it doesn't exit with an error, you're fine.

See discosrv -help for other options.