Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

virusz4274/chaotic-aur-mirrorhosting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chaotic-aur-mirrorhosting

This contains the docker compose file to deploy a chaotic-aur (aur.chaotic.cx ) mirror You dont need to have port forwarding working to deploy this mirror. Do note that tunnel speed can be very volatile. You wont be utlisizing full capacity of your bandwidth. If you want to deploy a normal mirror use this docker-compose file instead

Inside the Docker Compose

  • Syncthing container
  • Nginx Server
  • Cloudflared

Syncthing is used to sync the mirror. Nginx server will be serving the files inside the Syncthing folder. Cloudflared will create a tunnel between Nginx Server and Cloudflare Edge computers making it accesible to the public.

Prerequisite

  • Have domain DNS managed on cloudflare
  • Docker and Docker compose installed
  • About 80GB of storage space

For People using ARM64 or RaspberryPi

  • RUN docker build -t cloudflaredarm64 .
  • change the image of cloudflared container to cloudflaredarm64 in the docker-compose.yml file
  • You also need to build a docker image for nginx-server start by cloning this repo
  • RUN docker build -t dceoy/nginx-autoindex .

Instruction

  1. Clone this repo
  2. IN Mirror without portforwarding can goto chaotic-mirror-in folder and continue from step 4 , else continue. Get tokens for cloudflare
    • If you own domain, follow this Guide You can generate a credentials from your local pc and transfer it to the cloudflared folder.
    • If you dont have a domain get a tunnel key and config from us.
  3. Edit the config.yml inside cloudflared folder
  4. Run docker-compose up -d
  5. change folder ownership
    • sudo chown -R $USER:$USER .
  6. Open syncthing web interface by visting (http://localhost:8384)
    • Add device: ZDHVMSP-EW4TMWX-DBH2W4P-HV5A6OY-BBEFABO-QTENANJ-RJ6GKNX-6KCG7QY, then check "Introducer" and "Auto accept"
    • Select Add Folder
    • Enter jhcrt-m2dra in Folder ID
    • Enter chaotic-aur in Folder Label
    • Add folder with "Ignore Permissions" and "Pull Order" by "Oldest First".
    • Wait for chaotic-aur to accept it!

About

host your own chaotic-aur mirror without port forwarding using cloudflared tunnel.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published