yagcdn/frontend/template.html

73 lines
1.8 KiB
HTML
Raw Permalink Normal View History

2019-07-28 21:51:17 +02:00
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
2019-07-29 21:16:24 +02:00
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
2019-08-10 13:52:43 +02:00
<meta name="description" content="Serve Raw files from GitHub, GitLab or Bitbucket with proper content-type headers" />
2019-07-29 21:16:24 +02:00
<link rel="stylesheet" href="./assets/tacit-css.min.css" />
2019-08-10 13:52:43 +02:00
<title>YaGCDN - Yet Another Git CDN</title>
2019-07-28 21:51:17 +02:00
</head>
<body>
<section>
<header>
2019-08-09 20:49:07 +02:00
<h1>YaGCDN - Yet Another Git CDN</h1>
</header>
<article>
2019-08-12 20:10:30 +02:00
<div id="elm-${SHA1}">
<p>
<input readonly="true" value="https://yagcdn.tk/&lt;service&gt;/&lt;user&gt;/&lt;repo&gt;/&lt;gitref&gt;/&lt;file&gt;"
2019-10-27 16:30:33 +01:00
style="width: 100%" type="text" />
2019-08-12 20:10:30 +02:00
</p>
</div>
2019-08-09 19:43:58 +02:00
<script src="./scripts/yagcdn-${SHA1}.min.js">
2019-07-28 21:51:17 +02:00
</script>
<script>
var app = Elm.Main.init({ node: document.getElementById("elm-${SHA1}") });
</script>
<h2>Caching</h2>
<p>Files from a specific commit are cached in the CDN for one year.</p>
<p>Redirects for tags and branches are cached for 5 minutes.</p>
<h2>Invalidating the Cache</h2>
<p>To delete a file from the cache, just request the file via HTTP <code>DELETE</code></p>
2019-08-10 15:01:56 +02:00
<h2>Contact</h2>
<p>
2019-08-10 15:10:28 +02:00
If you want to contact me, you can <a href="mailto:mail+yagcdn@vbrandl.net">drop me a mail</a>. Feature requests can be
made <a href="https://github.com/vbrandl/yagcdn/issues">via GitHub issue</a>.
2019-08-10 15:01:56 +02:00
</p>
</article>
<footer>
<nav>
<ul>
<li>
2019-08-12 20:14:58 +02:00
<small>Created by <a href="https://www.vbrandl.net/">Valentin Brandl</a>, styled with
<a href="https://yegor256.github.io/tacit/">Tacit</a></small>
</li>
</ul>
</nav>
<nav>
<ul>
<li>
2019-08-09 19:43:58 +02:00
<small><a href="https://github.com/vbrandl/yagcdn">Repository</a></small>
</li>
<li>
<small><a href="https://opensource.org/licenses/MIT">MIT License</a></small>
</li>
</ul>
</nav>
</footer>
</section>
2019-07-28 21:51:17 +02:00
</body>
</html>