How to Add a stal/IX Mirror

List of source mirrors used to build stal/IX:

You can help the project by hosting such a mirror and making it available to the world!

The structure of the mirror is very simple - it is a single-level list of files, and the name of each file is sha256sum of the data contained in this file.

So, for example, you can copy all the contents of one of the mirrors and make a copy available on the Internet.

Or you can run a ready-made script in cron, for example, once an hour:

# ~/ix - clone of
# script will need gnu make, git, python3, wget in PATH
# output will be in ~/some/dir

cd ~/ix
git pull
./ix recache ~/some/dir

Instructions for stal/IX:

# ix mut system bin/ix/mirror --port=8080 --user=mirror --wd=/home/mirror
# mkdir /home/mirror
# chown mirror /home/mirror

Instructions for Ubuntu:

(from @vvzvlad)

Commands for debian vm (root user):

apt install make git python3 wget git nginx -y
ln -s `which python3` /usr/bin/python
rm /var/www/html/index.nginx-debian.html 
sed -i '/location \/ {/a\    autoindex on;' /etc/nginx/sites-available/default
service nginx reload
git clone /root/ix

echo 'log_file="/var/www/html/000000000000000_recache_date_$(date +\%Y\%m\%d\%H\%M\%S).txt"' >> /root/
echo 'rm /var/www/html/000000000000000_recache_date_*' >> /root/
echo '/usr/bin/git -C /root/ix pull  > "$log_file" 2>&1' >> /root/
echo '/root/ix/ix recache /var/www/html/ >> "$log_file" 2>&1' >> /root/
echo "0 */4 * * * /bin/sh /root/ > /dev/null 2>&1" > /etc/cron.d/ix_recache

After populating the cache directory, send a PR to add the new mirror to