syncthing/cmd/strelaypoolsrv
Jakob Borg ba6ac2f604
lib/geoip, cmd/relaypoolsrv, cmd/ursrv: Automatically manage GeoIP updates (#9342)
This adds a small package `geoip` which knows how to download and manage
the Maxmind GeoLite2 database we use. This removes the need for various
scripts to download and manage the geoip database, something that today
happens on Docker startup for the relay pool server and using various
hand written hacks for the usage reporting server.

The database is downloaded when needed and then refreshed on a
best-effort basis weekly.
2024-05-18 20:31:49 +03:00
..
auto all: Update build constraints to Go 1.17 style (#7894) 2021-08-17 10:10:41 +02:00
gui cmd/strelaypoolsrv: Update map tile URL (#8985) 2023-07-16 17:20:40 +02:00
LICENSE Initial commit 2015-09-06 17:29:14 +01:00
main_test.go cmd/strelaysrv, cmd/strelaypoolsrv: Sanitize query strings (fixes #8314) (#8315) 2022-05-02 10:38:49 +02:00
main.go lib/geoip, cmd/relaypoolsrv, cmd/ursrv: Automatically manage GeoIP updates (#9342) 2024-05-18 20:31:49 +03:00
README.md all: Weed out a few other http urls (ref #3976) 2017-02-09 08:04:16 +01:00
stats_test.go cmd/strelaypoolsrv: Prevent scraped metrics moving backwards (#5068) 2018-07-27 07:59:55 +02:00
stats.go all: Remove or convert deprecated API usages (#8459) 2022-07-28 17:14:49 +02:00

relaypoolsrv

This is the relay pool server for the syncthing project, which allows community hosted relaysrv's to join the public pool.

Servers that join the pool are then advertised to users of syncthing as potential connection points for those who are unable to connect directly due to NAT or firewall issues.

There is very little reason why you'd want to run this yourself, as relaypoolsrv is just used for announcement and lookup of public relay servers. If you are looking to setup a private or a public relay, please check the documentation for relaysrv, which also explains how to join the default public pool.

See relaypoolsrv -help for configuration options.

Third-party attributions

oschwald/geoip2-golang, oschwald/maxminddb-golang, Copyright (C) 2015 Gregory J. Oschwald.

lib/pq, Copyright (C) 2011-2013 'pq' Contributors Portions Copyright (C) 2011 Blake Mizerany.