1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00
lokinet/contrib/bootserv
2018-12-18 12:14:09 -05:00
..
config lokinet-bootserv 2018-12-18 12:14:09 -05:00
src lokinet-bootserv 2018-12-18 12:14:09 -05:00
.gitignore lokinet-bootserv 2018-12-18 12:14:09 -05:00
makefile lokinet-bootserv 2018-12-18 12:14:09 -05:00
readme.md lokinet-bootserv 2018-12-18 12:14:09 -05:00

lokinet-bootserv

cgi executable for serving a random RC for bootstrap from a nodedb

configuring

copy the example config (privileged)

# cp configs/lokinet-bootserv.ini /usr/local/etc/lokinet-bootserv.ini

edit config to have proper values, specifically make sure the [nodedb] section has a dir value that points to a static copy of a healthy nodedb

building

to build:

$ make

installing (priviledged)

install cgi binary:

# cp lokinet-bootserv /usr/local/bin/lokinet-bootserv 

set up with nginx cgi:

# cp configs/lokinet-bootserv-nginx.conf /etc/nginx/sites-available/lokinet-bootserv.conf
# ln -s /etc/nginx/sites-available/lokinet-bootserv.conf /etc/nginx/sites-enabled/ 

maintainence

add the following to crontab

0 0 * * * /usr/local/bin/lokinet-bootserv --cron