merge
This commit is contained in:
		
							parent
							
								
									b4689b0b44
								
							
						
					
					
						commit
						b31b0aafdf
					
				
							
								
								
									
										158
									
								
								index.html
								
								
								
								
							
							
						
						
									
										158
									
								
								index.html
								
								
								
								
							| 
						 | 
				
			
			@ -1,158 +0,0 @@
 | 
			
		|||
<!DOCTYPE html>
 | 
			
		||||
<html lang="en">
 | 
			
		||||
<head>
 | 
			
		||||
  <meta charset="UTF-8">
 | 
			
		||||
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
			
		||||
  <title>PAWE.ME</title>
 | 
			
		||||
  <link rel="icon" type="image/x-icon" href="favicon.ico">
 | 
			
		||||
  <link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;600;700;800;900&display=swap"
 | 
			
		||||
    rel="stylesheet">
 | 
			
		||||
  <script src="https://cdn.tailwindcss.com"></script>
 | 
			
		||||
  <script>
 | 
			
		||||
    tailwind.config = {
 | 
			
		||||
      darkMode: 'class'
 | 
			
		||||
    }
 | 
			
		||||
    if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
 | 
			
		||||
      document.documentElement.classList.add('dark')
 | 
			
		||||
    } else {
 | 
			
		||||
      document.documentElement.classList.remove('dark')
 | 
			
		||||
    }
 | 
			
		||||
  </script>
 | 
			
		||||
  <style>
 | 
			
		||||
    .url {
 | 
			
		||||
      font-style: italic;
 | 
			
		||||
      color: #5d7abf;
 | 
			
		||||
    
 | 
			
		||||
}  </style>
 | 
			
		||||
</head>
 | 
			
		||||
 | 
			
		||||
<body class="font-sans text-gray-900 bg-gray-100 py-12 px-6 mx-auto max-w-5xl dark:bg-gray-900">
 | 
			
		||||
  <header class="mb-10">
 | 
			
		||||
    <h1 class="text-4xl font-bold mb-2"><a href="http://PAWE.ME/"
 | 
			
		||||
        class="text-blue-500 hover:text-blue-700">PAWE.ME</a></h1>
 | 
			
		||||
    <h2 class="text-lg text-gray-600 dark:text-gray-300">Simple mirroring & archiving server.</h2>
 | 
			
		||||
    <!-- <h2 class="text-lg text-blue-400 dark:text-blue-200 italic"><a href="#">Hide my Email</a>, <a href="#">Invidious</a>, <a href="#">Proxy</a>.</h2> -->
 | 
			
		||||
  </header>
 | 
			
		||||
  <main>
 | 
			
		||||
    <section class="mb-12">
 | 
			
		||||
      <h2 class="dark:text-gray-200 text-2xl font-semibold mb-5">Mirroring List</h2>
 | 
			
		||||
      <div id="mirrorList" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-2 gap-4">
 | 
			
		||||
        <div class="bg-white dark:bg-gray-800 col-span-1 md:col-span-2 shadow-lg rounded-lg p-5">
 | 
			
		||||
  <h3 class="dark:text-white text-lg font-semibold mb-1"><a href="/archlinux"
 | 
			
		||||
      class="text-blue-500 hover:text-blue-700">ArchLinux (x86_64)</a></h3>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Last Updated: 2023-10-12 11:24</p>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Upstream: <span class="url">rsync://mirrors.xtom.de/archlinux/</span></p>
 | 
			
		||||
</div>
 | 
			
		||||
<div class="bg-white dark:bg-gray-800 col-span-1 shadow-lg rounded-lg p-5">
 | 
			
		||||
  <h3 class="dark:text-white text-lg font-semibold mb-1"><a href="/ubuntu"
 | 
			
		||||
      class="text-blue-500 hover:text-blue-700">Ubuntu</a></h3>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Last Updated: 2023-10-12 11:24</p>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Upstream: <span class="url">rsync://rsync.archive.ubuntu.com/ubuntu/</span></p>
 | 
			
		||||
</div>
 | 
			
		||||
<div class="bg-white dark:bg-gray-800 col-span-1 shadow-lg rounded-lg p-5">
 | 
			
		||||
  <h3 class="dark:text-white text-lg font-semibold mb-1"><a href="/ubuntu_cd"
 | 
			
		||||
      class="text-blue-500 hover:text-blue-700">Ubuntu Releases</a></h3>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Last Updated: Not Synced</p>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Upstream: <span class="url">rsync://releases.ubuntu.com/releases/</span></p>
 | 
			
		||||
</div>
 | 
			
		||||
<div class="bg-white dark:bg-gray-800 col-span-1 shadow-lg rounded-lg p-5">
 | 
			
		||||
  <h3 class="dark:text-white text-lg font-semibold mb-1"><a href="/debian"
 | 
			
		||||
      class="text-blue-500 hover:text-blue-700">Debian</a></h3>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Last Updated: Not Synced</p>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Upstream: <span class="url">rsync://mirrors.xtom.jp/debian/</span></p>
 | 
			
		||||
</div>
 | 
			
		||||
<div class="bg-white dark:bg-gray-800 col-span-1 shadow-lg rounded-lg p-5">
 | 
			
		||||
  <h3 class="dark:text-white text-lg font-semibold mb-1"><a href="/debian_cd"
 | 
			
		||||
      class="text-blue-500 hover:text-blue-700">Debian CD</a></h3>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Last Updated: Not Synced</p>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Upstream: <span class="url">rsync://ftp.lanet.kr/debian-cd/</span></p>
 | 
			
		||||
</div>
 | 
			
		||||
<div class="bg-white dark:bg-gray-800 col-span-1 md:col-span-2 shadow-lg rounded-lg p-5">
 | 
			
		||||
  <h3 class="dark:text-white text-lg font-semibold mb-1"><a href="/fedora"
 | 
			
		||||
      class="text-blue-500 hover:text-blue-700">Fedora</a></h3>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Last Updated: Not Synced</p>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Upstream: <span class="url">rsync://dl.fedoraproject.org/fedora-enchilada/linux/</span></p>
 | 
			
		||||
</div>
 | 
			
		||||
<div class="bg-white dark:bg-gray-800 col-span-1 md:col-span-2 shadow-lg rounded-lg p-5">
 | 
			
		||||
  <h3 class="dark:text-white text-lg font-semibold mb-1"><a href="/manjaro"
 | 
			
		||||
      class="text-blue-500 hover:text-blue-700">Manjaro</a></h3>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Last Updated: Not Synced</p>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Upstream: <span class="url">rsync://ftp.riken.jp/manjaro/</span></p>
 | 
			
		||||
</div>
 | 
			
		||||
<div class="bg-white dark:bg-gray-800 col-span-1 md:col-span-2 shadow-lg rounded-lg p-5">
 | 
			
		||||
  <h3 class="dark:text-white text-lg font-semibold mb-1"><a href="/raspbian"
 | 
			
		||||
      class="text-blue-500 hover:text-blue-700">Raspbian</a></h3>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Last Updated: Not Synced</p>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Upstream: <span class="url">rsync://archive.raspbian.org/archive/</span></p>
 | 
			
		||||
</div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </section>
 | 
			
		||||
    <section class="mb-12">
 | 
			
		||||
      <h2 class="dark:text-gray-200 text-2xl font-semibold mb-5">Additional Mirror</h2>
 | 
			
		||||
      <!-- <button onclick="toggleView('httpView')" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded mb-4">View More</button> -->
 | 
			
		||||
      <div id="httpView" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-2 gap-4">
 | 
			
		||||
        <div class="bg-white dark:bg-gray-800 col-span-1 md:col-span-2 shadow-lg rounded-lg p-5">
 | 
			
		||||
  <h3 class="dark:text-white text-lg font-semibold mb-1"><a href="/archlinuxarm"
 | 
			
		||||
      class="text-blue-500 hover:text-blue-700">ArchLinux (ARM)</a></h3>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Last Updated: Not Synced</p>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Upstream: <span class="url">http://jp.mirror.archlinuxarm.org/</span></p>
 | 
			
		||||
</div>
 | 
			
		||||
<div class="bg-white dark:bg-gray-800 col-span-1 md:col-span-2 shadow-lg rounded-lg p-5">
 | 
			
		||||
  <h3 class="dark:text-white text-lg font-semibold mb-1"><a href="/asahilinux"
 | 
			
		||||
      class="text-blue-500 hover:text-blue-700">AsahiLinux</a></h3>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Last Updated: Not Synced</p>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Upstream: <span class="url">https://cdn.asahilinux.org/</span></p>
 | 
			
		||||
</div>
 | 
			
		||||
<div class="bg-white dark:bg-gray-800 col-span-1 md:col-span-2 shadow-lg rounded-lg p-5">
 | 
			
		||||
  <h3 class="dark:text-white text-lg font-semibold mb-1"><a href="/ubuntu_cd_old"
 | 
			
		||||
      class="text-blue-500 hover:text-blue-700">Ubuntu Releases (Old)</a></h3>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Last Updated: Not Synced</p>
 | 
			
		||||
  <p class="text-gray-600 dark:text-gray-300">Upstream: <span class="url">rsync://old-releases.ubuntu.com/releases/</span></p>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
         <div class="bg-white dark:bg-gray-800 col-span-1 md:col-span-2 shadow-lg rounded-lg p-5">
 | 
			
		||||
          <h3 class="dark:text-white text-lg font-semibold mb-1"><a href="/cd-image"
 | 
			
		||||
              class="text-blue-500 hover:text-blue-700">Image Files</a></h3>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
      </div>
 | 
			
		||||
    </section>
 | 
			
		||||
    <section>
 | 
			
		||||
      <h2 class="dark:text-gray-200 text-2xl font-semibold mb-5">Server Info</h2>
 | 
			
		||||
      <ul class="space-y-2 mb-5">
 | 
			
		||||
        <li class="text-gray-600 dark:text-gray-500">Xeon CPU</li>
 | 
			
		||||
        <li class="text-gray-600 dark:text-gray-500">64GiB Memory</li>
 | 
			
		||||
        <li class="text-gray-600 dark:text-gray-500">1Gbps Network, Seoul, Korea</li>
 | 
			
		||||
        <li class="text-gray-600 dark:text-gray-500">32TB Storage</li>
 | 
			
		||||
      </ul>
 | 
			
		||||
      <p class="text-gray-700 dark:text-gray-400 url">Fill out <a href="/form.html" class="text-blue-600 dark:text-blue-700">this</a> form to request additional mirroring.</p>
 | 
			
		||||
    </section>
 | 
			
		||||
    <button
 | 
			
		||||
      class="fixed bottom-6 right-6 bg-blue-200 hover:bg-blue-300 text-blue-700 dark:bg-blue-800 dark:hover:bg-blue-600 dark:text-white w-10 h-10 rounded-full flex items-center justify-center"
 | 
			
		||||
      onclick="toggleDarkMode()">
 | 
			
		||||
      +
 | 
			
		||||
    </button>
 | 
			
		||||
  </main>
 | 
			
		||||
  <footer class="mt-10 text-center text-gray-600">
 | 
			
		||||
    <a href="mailto:mirror@devpg.net">© PAWE.ME</a>
 | 
			
		||||
    <br/>
 | 
			
		||||
    <a href="https://github.com/morgan9e/pawe.me"><i>source</i></a>
 | 
			
		||||
  </footer>
 | 
			
		||||
  <script>
 | 
			
		||||
    function toggleView(elementId) {
 | 
			
		||||
      const element = document.getElementById(elementId);
 | 
			
		||||
      element.style.display = element.style.display === "none" ? "block" : "none";
 | 
			
		||||
    }
 | 
			
		||||
    function toggleDarkMode() {
 | 
			
		||||
      if (document.documentElement.classList.contains('dark')) {
 | 
			
		||||
        document.documentElement.classList.remove('dark');
 | 
			
		||||
        localStorage.theme = 'light';
 | 
			
		||||
      } else {
 | 
			
		||||
        document.documentElement.classList.add('dark');
 | 
			
		||||
        localStorage.theme = 'dark';
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  </script>
 | 
			
		||||
</body>
 | 
			
		||||
 | 
			
		||||
</html>
 | 
			
		||||
| 
						 | 
				
			
			@ -47,21 +47,13 @@ repos:
 | 
			
		|||
 | 
			
		||||
  UBUNTU_CD:
 | 
			
		||||
    url: rsync://releases.ubuntu.com/releases/
 | 
			
		||||
<<<<<<< HEAD
 | 
			
		||||
    duration: 12
 | 
			
		||||
=======
 | 
			
		||||
    delay: 24
 | 
			
		||||
>>>>>>> refs/remotes/origin/main
 | 
			
		||||
    delay: 12
 | 
			
		||||
    name: "Ubuntu Releases"
 | 
			
		||||
    path: ubuntu_cd
 | 
			
		||||
 | 
			
		||||
  UBUNTU_CD_OLD:
 | 
			
		||||
    url: rsync://old-releases.ubuntu.com/releases/
 | 
			
		||||
<<<<<<< HEAD
 | 
			
		||||
    duration: 12
 | 
			
		||||
=======
 | 
			
		||||
    delay: 24
 | 
			
		||||
>>>>>>> refs/remotes/origin/main
 | 
			
		||||
    delay: 12
 | 
			
		||||
    name: "Ubuntu Releases (Old)"
 | 
			
		||||
    path: ubuntu_cd_old
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -77,11 +69,7 @@ repos:
 | 
			
		|||
  
 | 
			
		||||
  DEBIAN_CD:
 | 
			
		||||
    url: rsync://ftp.lanet.kr/debian-cd/
 | 
			
		||||
<<<<<<< HEAD
 | 
			
		||||
    duration: 12
 | 
			
		||||
=======
 | 
			
		||||
    delay: 24
 | 
			
		||||
>>>>>>> refs/remotes/origin/main
 | 
			
		||||
    delay: 12
 | 
			
		||||
    name: "Debian CD"
 | 
			
		||||
    path: debian_cd
 | 
			
		||||
  
 | 
			
		||||
| 
						 | 
				
			
			@ -108,25 +96,15 @@ repos:
 | 
			
		|||
    path: archlinuxarm
 | 
			
		||||
    url: http://jp.mirror.archlinuxarm.org/
 | 
			
		||||
    type: http
 | 
			
		||||
<<<<<<< HEAD
 | 
			
		||||
    duration: 12
 | 
			
		||||
  
 | 
			
		||||
=======
 | 
			
		||||
    delay: 12
 | 
			
		||||
    last_sync: "2023-10-09T23:30Z"
 | 
			
		||||
>>>>>>> refs/remotes/origin/main
 | 
			
		||||
  
 | 
			
		||||
  ASAHILINUX:
 | 
			
		||||
    name: "AsahiLinux"
 | 
			
		||||
    path: asahilinux
 | 
			
		||||
    url: https://cdn.asahilinux.org/
 | 
			
		||||
    type: http
 | 
			
		||||
<<<<<<< HEAD
 | 
			
		||||
    duration: 12
 | 
			
		||||
 | 
			
		||||
=======
 | 
			
		||||
    delay: 12
 | 
			
		||||
    last_sync: "2023-10-09T23:30Z"
 | 
			
		||||
>>>>>>> refs/remotes/origin/main
 | 
			
		||||
 | 
			
		||||
index:
 | 
			
		||||
  - ARCHLINUX
 | 
			
		||||
  - UBUNTU UBUNTU_CD
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -236,9 +236,9 @@ for repo in "${repos[@]}"; do
 | 
			
		|||
    cd $BASE_DIR
 | 
			
		||||
    debug "Checking $repo..."
 | 
			
		||||
    
 | 
			
		||||
    duration=$(get_repo_config ${repo} "duration")
 | 
			
		||||
    delay=$(get_repo_config ${repo} "delay")
 | 
			
		||||
    last_sync_timestamp=$(date -d "$(get_repo_config ${repo} "last_sync")" +%s)
 | 
			
		||||
    next_sync_timestamp=$(( last_sync_timestamp + duration * 3600 ))
 | 
			
		||||
    next_sync_timestamp=$(( last_sync_timestamp + delay * 3600 ))
 | 
			
		||||
    
 | 
			
		||||
    if [[ -v DEBUG ]]; then
 | 
			
		||||
        next_sync_timestamp=1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
		 Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB  | 
		Loading…
	
		Reference in New Issue