nobsdelivr/templates/index.html
Kumi c4054c1374
feat: add Flask proxy app for cdn.jsdelivr.net
Introduce a simple Flask app that proxies requests to cdn.jsdelivr.net.
Includes basic routing for home and proxy endpoints, and a template
render for the home page explaining usage. Added Flask to
requirements.txt and updated .gitignore to exclude venv and __pycache__.
2024-08-03 08:40:59 +02:00

33 lines
967 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<title>nobsdelivr</title>
<link
href="/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
</head>
<body>
<div class="container text-center mt-5">
<h1 class="display-4">Welcome to nobsdelivr</h1>
<p class="lead">
nobsdelivr is a simple proxy to cdn.jsdelivr.net. Use it to proxy your
requests to the CDN.
</p>
<hr class="my-4" />
<p>
To use the proxy, simply replace
<code>https://cdn.jsdelivr.net</code> with <code>{{ domain }}</code> in
the URL.
</p>
<p>Example:</p>
<code>{{ domain }}npm/bootstrap@5.1.3/dist/css/bootstrap.min.css</code>
</div>
<script src="/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>