This commit is contained in:
commit
b4689b0b44
|
@ -0,0 +1,14 @@
|
||||||
|
## PAWE.ME
|
||||||
|
Simple mirroring & archiving server.
|
||||||
|
|
||||||
|
- This script is used to serve [pawe.me](https://pawe.me) mirroring server.
|
||||||
|
|
||||||
|
- config.yaml contains various config options, can add more repo/upstream with just adding to config. supports http, rsync, ftpsync(debian).
|
||||||
|
|
||||||
|
- ~~HTTP Mirroring uses custom python script using aiohttp, may change to wget recursive mirroring..~~ fixing script, currently just fetches in order.
|
||||||
|
|
||||||
|
- $BASE_DIR is where all data is stored. Need to change manually in script index.py
|
||||||
|
|
||||||
|
- index.py renders index.html file after each sync, order and half-size card can be configured in config.yml
|
||||||
|
|
||||||
|
- element DIVIDER in .index (from config) is used to divide card between "main" and "additional mirroring" in index.html
|
|
@ -58,7 +58,7 @@
|
||||||
formData.append('title', title);
|
formData.append('title', title);
|
||||||
formData.append('content', content);
|
formData.append('content', content);
|
||||||
|
|
||||||
fetch(PUSHNOTIFICAATIONURL, {
|
fetch(PUSHAPIADDRESS, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
|
|
|
@ -35,32 +35,40 @@ defaults:
|
||||||
repos:
|
repos:
|
||||||
ARCHLINUX:
|
ARCHLINUX:
|
||||||
url: rsync://mirrors.xtom.de/archlinux/
|
url: rsync://mirrors.xtom.de/archlinux/
|
||||||
duration: 4
|
delay: 4
|
||||||
name: "ArchLinux (x86_64)"
|
name: "ArchLinux (x86_64)"
|
||||||
path: archlinux
|
path: archlinux
|
||||||
|
|
||||||
UBUNTU:
|
UBUNTU:
|
||||||
url: rsync://rsync.archive.ubuntu.com/ubuntu/
|
url: rsync://rsync.archive.ubuntu.com/ubuntu/
|
||||||
duration: 4
|
delay: 4
|
||||||
name: "Ubuntu"
|
name: "Ubuntu"
|
||||||
path: ubuntu
|
path: ubuntu
|
||||||
|
|
||||||
UBUNTU_CD:
|
UBUNTU_CD:
|
||||||
url: rsync://releases.ubuntu.com/releases/
|
url: rsync://releases.ubuntu.com/releases/
|
||||||
|
<<<<<<< HEAD
|
||||||
duration: 12
|
duration: 12
|
||||||
|
=======
|
||||||
|
delay: 24
|
||||||
|
>>>>>>> refs/remotes/origin/main
|
||||||
name: "Ubuntu Releases"
|
name: "Ubuntu Releases"
|
||||||
path: ubuntu_cd
|
path: ubuntu_cd
|
||||||
|
|
||||||
UBUNTU_CD_OLD:
|
UBUNTU_CD_OLD:
|
||||||
url: rsync://old-releases.ubuntu.com/releases/
|
url: rsync://old-releases.ubuntu.com/releases/
|
||||||
|
<<<<<<< HEAD
|
||||||
duration: 12
|
duration: 12
|
||||||
|
=======
|
||||||
|
delay: 24
|
||||||
|
>>>>>>> refs/remotes/origin/main
|
||||||
name: "Ubuntu Releases (Old)"
|
name: "Ubuntu Releases (Old)"
|
||||||
path: ubuntu_cd_old
|
path: ubuntu_cd_old
|
||||||
|
|
||||||
DEBIAN:
|
DEBIAN:
|
||||||
url: rsync://mirrors.xtom.jp/debian/
|
url: rsync://mirrors.xtom.jp/debian/
|
||||||
type: ftpsync
|
type: ftpsync
|
||||||
duration: 4
|
delay: 4
|
||||||
name: Debian
|
name: Debian
|
||||||
path: debian
|
path: debian
|
||||||
scripts:
|
scripts:
|
||||||
|
@ -69,25 +77,29 @@ repos:
|
||||||
|
|
||||||
DEBIAN_CD:
|
DEBIAN_CD:
|
||||||
url: rsync://ftp.lanet.kr/debian-cd/
|
url: rsync://ftp.lanet.kr/debian-cd/
|
||||||
|
<<<<<<< HEAD
|
||||||
duration: 12
|
duration: 12
|
||||||
|
=======
|
||||||
|
delay: 24
|
||||||
|
>>>>>>> refs/remotes/origin/main
|
||||||
name: "Debian CD"
|
name: "Debian CD"
|
||||||
path: debian_cd
|
path: debian_cd
|
||||||
|
|
||||||
FEDORA:
|
FEDORA:
|
||||||
url: rsync://dl.fedoraproject.org/fedora-enchilada/linux/
|
url: rsync://dl.fedoraproject.org/fedora-enchilada/linux/
|
||||||
duration: 4
|
delay: 4
|
||||||
name: "Fedora"
|
name: "Fedora"
|
||||||
path: fedora
|
path: fedora
|
||||||
|
|
||||||
RASPBIAN:
|
RASPBIAN:
|
||||||
url: rsync://archive.raspbian.org/archive/
|
url: rsync://archive.raspbian.org/archive/
|
||||||
duration: 6
|
delay: 6
|
||||||
name: "Raspbian"
|
name: "Raspbian"
|
||||||
path: raspbian
|
path: raspbian
|
||||||
|
|
||||||
MANJARO:
|
MANJARO:
|
||||||
url: rsync://ftp.riken.jp/manjaro/
|
url: rsync://ftp.riken.jp/manjaro/
|
||||||
duration: 4
|
delay: 4
|
||||||
name: Manjaro
|
name: Manjaro
|
||||||
path: manjaro
|
path: manjaro
|
||||||
|
|
||||||
|
@ -96,15 +108,25 @@ repos:
|
||||||
path: archlinuxarm
|
path: archlinuxarm
|
||||||
url: http://jp.mirror.archlinuxarm.org/
|
url: http://jp.mirror.archlinuxarm.org/
|
||||||
type: http
|
type: http
|
||||||
|
<<<<<<< HEAD
|
||||||
duration: 12
|
duration: 12
|
||||||
|
|
||||||
|
=======
|
||||||
|
delay: 12
|
||||||
|
last_sync: "2023-10-09T23:30Z"
|
||||||
|
>>>>>>> refs/remotes/origin/main
|
||||||
ASAHILINUX:
|
ASAHILINUX:
|
||||||
name: "AsahiLinux"
|
name: "AsahiLinux"
|
||||||
path: asahilinux
|
path: asahilinux
|
||||||
url: https://cdn.asahilinux.org/
|
url: https://cdn.asahilinux.org/
|
||||||
type: http
|
type: http
|
||||||
|
<<<<<<< HEAD
|
||||||
duration: 12
|
duration: 12
|
||||||
|
|
||||||
|
=======
|
||||||
|
delay: 12
|
||||||
|
last_sync: "2023-10-09T23:30Z"
|
||||||
|
>>>>>>> refs/remotes/origin/main
|
||||||
index:
|
index:
|
||||||
- ARCHLINUX
|
- ARCHLINUX
|
||||||
- UBUNTU UBUNTU_CD
|
- UBUNTU UBUNTU_CD
|
||||||
|
|
|
@ -53,8 +53,6 @@ if __name__ == "__main__":
|
||||||
print("Usage: createFetch.py [URL] [Path] (fetch)")
|
print("Usage: createFetch.py [URL] [Path] (fetch)")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
# urls = {"archlinuxarm": "http://jp.mirror.archlinuxarm.org/", "asahilinux": "https://cdn.asahilinux.org/", "linux-surface": "https://pkg.surfacelinux.com/arch/"}
|
|
||||||
|
|
||||||
if "http" in sys.argv[1]:
|
if "http" in sys.argv[1]:
|
||||||
if input(f"[*] Download from {sys.argv[1]}? ") in "Yy":
|
if input(f"[*] Download from {sys.argv[1]}? ") in "Yy":
|
||||||
url = sys.argv[1]
|
url = sys.argv[1]
|
||||||
|
|
Loading…
Reference in New Issue