public manual added
This commit is contained in:
57
data/web/index.md
Normal file
57
data/web/index.md
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
# mirror.venya.tech
|
||||||
|
Набор зеркал репозиториев различного ПО, огороженного от России разработчиками
|
||||||
|
|
||||||
|
С предложениями и жалобами на какие-нибудь технические сложности просьба писать на `mirror at venya.tech`
|
||||||
|
# MongoDB
|
||||||
|
## rpm
|
||||||
|
В зависимости от требуемой версии MongoDB, замените соответствующие переменные в следующем блоке. Поддерживаются `4.2`/`4.4`/`5.0`/`6.0`:
|
||||||
|
|
||||||
|
[mongodb-org-6.0]
|
||||||
|
name=MongoDB Repository
|
||||||
|
baseurl=https://mirror.venya.tech/mirrors/repo.mongodb.org/rpm/redhat/$releasever/mongodb-org/6.0/x86_64/
|
||||||
|
gpgcheck=1
|
||||||
|
enabled=1
|
||||||
|
gpgkey=https://mirror.venya.tech/mirrors/repo.mongodb.org/rpm/server-6.0.asc
|
||||||
|
|
||||||
|
## deb
|
||||||
|
В зависимости от версии дистрибутива Ubuntu и требуемой версии MongoDB, замените соответствующие переменные в следующей строке. Поддерживаются `xenial`/`bionic`/`focal` и `4.2`/`4.4`/`5.0`/`6.0` соответственно
|
||||||
|
|
||||||
|
echo "deb [ arch=amd64 ] https://mirror.venya.tech/mirrors/repo.mongodb.org/deb/ubuntu focal/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Grafana
|
||||||
|
## rpm
|
||||||
|
[grafana]
|
||||||
|
name=grafana
|
||||||
|
baseurl=https://mirror.venya.tech/mirrors/grafana/rpm/
|
||||||
|
enabled=1
|
||||||
|
gpgcheck=1
|
||||||
|
gpgkey=https://mirror.venya.tech/mirrors/grafana/rpm/gpg.key
|
||||||
|
sslverify=1
|
||||||
|
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
|
||||||
|
## deb
|
||||||
|
sudo apt-get install -y apt-transport-https
|
||||||
|
sudo apt-get install -y software-properties-common wget
|
||||||
|
sudo wget -q -O /usr/share/keyrings/grafana.key https://mirror.venya.tech/mirrors/grafana/rpm/gpg.key
|
||||||
|
|
||||||
|
echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://mirror.venya.tech/mirrors/grafana/deb/ stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
|
||||||
|
|
||||||
|
# ELK (Elastic/Logstash/Kibana/etc.)
|
||||||
|
В зависимости от требуемой версии сервисов, замените соответствующие переменные в следующих блоках. Поддерживаются `5.x`/`6.x`/`7.x`/`8.x`:
|
||||||
|
## rpm
|
||||||
|
[elasticsearch-6.x]
|
||||||
|
name=Elasticsearch repository for 6.x packages
|
||||||
|
baseurl=https://mirror.venya.tech/mirrors/artifacts.elastic.co/rpm/6.x/
|
||||||
|
gpgcheck=1
|
||||||
|
gpgkey=https://mirror.venya.tech/mirrors/artifacts.elastic.co/GPG-KEY-elasticsearch
|
||||||
|
enabled=1
|
||||||
|
autorefresh=1
|
||||||
|
type=rpm-md
|
||||||
|
|
||||||
|
|
||||||
|
## deb
|
||||||
|
wget -qO - https://mirror.venya.tech/mirrors/artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
|
||||||
|
sudo apt-get install apt-transport-https
|
||||||
|
echo "deb https://mirror.venya.tech/mirrors/artifacts.elastic.co/deb/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
|
||||||
|
|
||||||
57
data/web/md-renderer.html
Normal file
57
data/web/md-renderer.html
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/milligram/1.4.1/milligram.min.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/highlight.js/10.1.2/styles/github.min.css">
|
||||||
|
<script type="application/javascript" src="https://cdn.bootcdn.net/ajax/libs/marked/1.1.1/marked.min.js"></script>
|
||||||
|
<script type="application/javascript" src="https://cdn.bootcdn.net/ajax/libs/highlight.js/10.1.2/highlight.min.js"></script>
|
||||||
|
<style rel="stylesheet">
|
||||||
|
body {
|
||||||
|
color: #24292e;
|
||||||
|
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
|
||||||
|
}
|
||||||
|
.container {
|
||||||
|
margin: 5rem auto;
|
||||||
|
padding: 4rem;
|
||||||
|
border: 1px solid #eaecef;
|
||||||
|
}
|
||||||
|
.container h1 {
|
||||||
|
padding-bottom: .3em;
|
||||||
|
border-bottom: 1px solid #eaecef;
|
||||||
|
}
|
||||||
|
code.error {
|
||||||
|
display: block;
|
||||||
|
padding: 2rem;
|
||||||
|
color: #F43;
|
||||||
|
font-size: 2rem;
|
||||||
|
line-height: 2rem;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<script>
|
||||||
|
marked.setOptions({
|
||||||
|
renderer: new marked.Renderer(),
|
||||||
|
highlight: function (code, lang) {
|
||||||
|
const validLanguage = hljs.getLanguage(lang) ? lang : 'plaintext';
|
||||||
|
return hljs.highlight(validLanguage, code).value;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const targetFile = location.pathname;
|
||||||
|
const modify = (t) => document.getElementById('content').innerHTML = t;
|
||||||
|
const request = fetch(targetFile, {headers: {'Accept': 'text/markdown'}}).then((res) => {
|
||||||
|
if (!res.ok)
|
||||||
|
throw new Error(`${res.statusText} (${res.status})`);
|
||||||
|
return res.text()
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
<script defer>
|
||||||
|
request.then((text) => modify(marked(text)))
|
||||||
|
.catch((err) => modify(`<code class="error">Failed to load ${targetFile}: ${err.message}</code>`))
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<div id="content" />
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user