Dependencies: curl, sqlite3, parallel, php-sqlite3, php-gd, php-curl
How to start using it:
- Install dependencies (
sudo apt install curl sqlite3 parallel dnsutils php-sqlite3 php-gd php-curl
); Note that after installing GNU Parallel, you need to run it for the first time with the--citation
parameter to hide the extra output - Copy the contents of this repository to your web server
- Inside the directory where the contents of this repository are located, create a database named
database.db
using this script: database_schema.sql (or copy this database: database.db) - Configure the web server. Here is an example of the nginx web server configuration file
- Give the web server write access to this directory and write access to the
database.db
file - Add a cron job:
0 */1 * * * /path/to/sites_dir/checkavailability.sh >/dev/null 2>&1
(hourly site availability check and html files regeneration) - The permissions for the files
site/index.html*
,site/categories.html*
must be that they can be changed from both the cron job and the web server - If you want to receive notifications about changes in the list of sites in telegram, fill in the parameters in the file
php-backend/ygg_telegram_notify.php
These scripts are currently used on the Yggdrasil network at this address: http://[21e:a51c:885b:7db0:166e:927:98cd:d186]/