4736cccda1
This adds a certificate lifetime parameter to our certificate generation and hard codes it to twenty years in some uninteresting places. In the main binary there are a couple of constants but it results in twenty years for the device certificate and 820 days for the HTTPS one. 820 is less than the 825 maximum Apple allows nowadays. This also means we must be prepared for certificates to expire, so I add some handling for that and generate a new certificate when needed. For self signed certificates we regenerate a month ahead of time. For other certificates we leave well enough alone. |
||
---|---|---|
.. | ||
auto | ||
gui | ||
LICENSE | ||
main.go | ||
README.md | ||
stats_test.go | ||
stats.go |
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.