First update

First update
This commit is contained in:
Yuncraft 2019-08-09 20:13:22 +08:00 committed by Gitee
parent 0a435a8f3a
commit 41148ff70e
4 changed files with 1776 additions and 0 deletions

261
.autoindex/footer.html Normal file
View File

@ -0,0 +1,261 @@
<!-- autoindex for nginx -->
<style>
#title{
color: #87ceff;
text-decoration:none;
}
h1{
color:#ffffff;
font-size: 0em;
}
h2, h3, h4{
color: #87ceff;
}
a{
color:#76eec6;
}
#footer {
text-align: center;
margin-bottom: 10px;
clear: both;
}
#footer a {
color: #7ec0ee;
margin: 0px 10px;
font-size: 0.9em;
text-decoration:none
}
.autoindex-list,
.autoindex-copyright,
.autoindex-unsupported{
font-family: Monaco, "Microsoft Yahei", "Helvetica Neue", Simsun, Helvetica, Tahoma, Arial,sans-serif;
font-size: 14px;
}
.autoindex-list>li{
line-height:34px;
border-bottom:1px #ddd solid;
padding-left:10px;
padding-right:10px;
position:relative;
color:#999;
}
.autoindex-list>li:hover{
background-color:#eee;
border-bottom-color:#2CC38E;
}
.autoindex-list>li a{
text-decoration:none;
}
.autoindex-list>li a:hover{
text-decoration:underline;
}
.autoindex-list>li a.external{
font-size:0;
line-height:0;
width:10px;
height:10px;
display:inline-block;
vertical-align:middle;
margin-left:10px;
background-size:100%;
background-repeat:no-repeat;
background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1s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HILZBchm697jQA/E/jpSITTPOaCQmShmIMYAozegpkQWH5u9QNhMhA34zkAFApp7AkROJwccAAgwAv1dfdV8fv7YAAAAASUVORK5CYII=);
}
.autoindex-list>li span{
position:absolute;
top:0;
right:0;
bottom:0;
min-width:300px;
display:inline-block;
color:#666;
padding-left:10px;
padding-right:10px;
background-color:rgba(255,255,255,0.45);
}
.autoindex-copyright{
text-align:right;
padding:10px;
color:#888;
font-size:12px;
}
.autoindex-copyright a{
color:#2c66b1;
}
.autoindex-toggle{
cursor:pointer;
}
.autoindex-toggle.active{
font-weight:bold;
color:#0093ff;
}
.autoindex-unsupported{
position:absolute;
right:0;
bottom:0;
z-index:6;
background-color:rgba(244,244,244,0.45);
padding:2px 5px;
font-size:12px;
margin:0;
color:#666;
}
@media (max-width: 640px){
.autoindex-list>li{
padding-top:6px;
padding-bottom:6px;
line-height:24px;
}
.autoindex-list>li a{
display:block;
white-space:normal;
word-break:break-all;
padding-top:5px;
padding-bottom:5px;
}
.autoindex-list>li span{
min-width:auto;
position:static;
font-size:12px;
line-height:16px;
color:#888;
background-color:transparent;
padding:2px 0 5px 0;
}
}
</style>
<script>
(function(window){
var autoindex = {
ver: '1.1',
release: '201707171212',
author: 'Bigsk',
email: 'bigsk@qq.com',
db: {
prefix: 'autoindex_',
get: function(key){
if(key)key = this.prefix + key;
return localStorage.getItem(key);
},
set: function(key, value){
if(key)key = this.prefix + key;
localStorage.setItem(key, value);
},
remove: function(key){
if(key)key = this.prefix + key;
localStorage.removeItem(key);
},
clear: function(){
localStorage.clear();
}
},
target: '',
toggle: function(action){
switch(action){
case 'target':
if(this.target){
autoindex.db.remove('target');
}else{
autoindex.db.set('target', '_blank');
};
location.reload();
break;
case 'reset':
autoindex.db.clear();
location.reload();
break;
default:
break;
};
},
init: function(){
if(window.localStorage){
this.target = this.db.get('target');
};
if(typeof(document.querySelector)=='function'){
var autoindexDoctype = document.implementation.createDocumentType('html', '', '');
if(document.doctype){
document.replaceChild(autoindexDoctype, document.doctype);
}else{
document.insertBefore(autoindexDoctype, document.childNodes[0]);
};
var autoindexList = document.querySelector('body>pre');
if(autoindexList){
var head = document.querySelector('head#autoindex-head');
if(!head){
head = document.head;
var meta = document.createElement('meta');
meta.setAttribute('charset', 'utf-8');
head.appendChild(meta);
meta = document.createElement('meta');
meta.setAttribute('name', 'viewport');
meta.setAttribute('content', 'width=device-width,initial-scale=1');
head.appendChild(meta);
meta = document.createElement('meta');
meta.setAttribute('http-equiv', 'X-UA-Compatible');
meta.setAttribute('content', 'IE=edge,chrome=1');
head.appendChild(meta);
meta = document.createElement('meta');
meta.setAttribute('name', 'author');
meta.setAttribute('content', 'Jack.Chan');
head.appendChild(meta);
};
var listTag = 'ol';
var html = [], item = '', itemArr = [], itemLink = '', itemInfo = '', itemExternal = '';
var dataArr = autoindexList.innerHTML.split('\n');
for(var i in dataArr){
item = String(dataArr[i]).trim();
if(item){
if(item.indexOf('</a>') > -1){
itemArr = item.split('</a>');
itemLink = String(itemArr[0]).trim();
if(i>0){
if(autoindex.target){
itemLink = itemLink.replace('<a', '<a target="'+ autoindex.target +'"') + '</a>';
}else{
itemExternal = itemLink.replace('<a', '<a class="external" target="_blank" title="external"') + '</a>';
};
};
itemInfo = String(itemArr[1]).trim();
item = itemLink + itemExternal + (itemInfo ? '<span>'+ itemInfo +'</span>' : '');
};
html.push('<li'+ (i==0 ? ' class="parent"' : '') +'>'+ item +'</li>');
itemArr = [];
item = itemLink = itemInfo = itemExternal = '';
};
};
if(html.length){
html.unshift('<'+ listTag +' class="autoindex-list">');
html.push('</'+ listTag +'>');
autoindexList.innerHTML = html.join('');
var autoindexToggle = document.querySelector('#autoindex-toggle');
if(autoindexToggle){
autoindexToggle.onclick = function(){
autoindex.toggle('target');
};
};
};
html = item = itemArr = itemLink = itemInfo = '';
};
}else{
var autoindexUnsupported = 'autoindex ->> your browser didn\'t support : " document.querySelector "';
if(window.console){
console.error(autoindexUnsupported);
}else{
document.write('<p class="autoindex-unsupported">'+ autoindexUnsupported +'</p>');
};
};
}
};
autoindex.init();
window.autoindex = autoindex;
}(window));
</script>
<!--Your link.-->
<!--你的链接.-->
<div id="footer" align="center"><a target="_blank" href="https://www.yuncraft.cc">Yuncraft</a>&nbsp;<a target="_blank" href="https://goat.yuncraft.cc">Goat公益</a>&nbsp;<a target="_blank" href="https://afdian.net/@yuncraft">赞助</a>&nbsp;<a target="_blank" href="https://gitee.com/yuncraft">码云</a>&nbsp;<a target="_blank" href="https://mirrors.yuncraft.cc/.tz.php">服务器探针</a>&nbsp;<a target="_blank" href="https://mirrors.tuna.tsinghua.edu.cn">清华大学镜像站</a></div>
<!-- autoindex for nginx -->

24
.autoindex/header.html Normal file
View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head id="autoindex-head">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="author" content="Jack.Chan">
<meta name="description" content="">
<meta name="keywords" content="开源镜像">
<link rel="shortcut icon" href="https://www.yuncraft.cc/favicon.ico">
<!--Your ICON-->
<!--你的网站图标-->
<title>GoMirror开源镜像站</title>
<!--Your title.-->
<!--你的标题.-->
</head>
<h2><a id="title" href="https://mirrors.yuncraft.cc">GoMirror镜像站</a></h2>
<!--Your title.-->
<!--你的标题.-->
<h3>本站将于下个月升级服务器(4TB硬盘独立主机机柜环境开放rsync</h3>
<h3>点击页脚赞助,帮助我们提供更好的服务!</h3>
<h3>当前需求14TBx5、阵列卡x1、1U千兆交换机x122540元</h3>
<!--Your info.-->
<!--你的信息.-->

1483
.tz.php Normal file

File diff suppressed because it is too large Load Diff

8
nginx/Nginx.conf Normal file
View File

@ -0,0 +1,8 @@
location ~ ^(.*)/$ {
autoindex on;
autoindex_localtime on;
autoindex_exact_size off;
add_before_body /.autoindex/header.html;
add_after_body /.autoindex/footer.html;
}