learn-nginx-auth/site/index.html
2025-11-21 12:50:29 -06:00

27 lines
1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>nginx auth demo</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-900 text-white min-h-screen flex items-center justify-center">
<div class="text-center space-y-6">
<h1 class="text-4xl font-bold text-blue-400">nginx auth demo</h1>
<p class="text-gray-300">Everyone can see this page</p>
<div class="space-y-4">
<div>
<a href="/admin" class="inline-block px-6 py-3 bg-red-600 hover:bg-red-700 rounded text-white">
Admin Page (requires admin role)
</a>
</div>
<div class="space-x-4">
<a href="/login" class="px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded">Login</a>
<a href="/logout" class="px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded">Logout</a>
</div>
</div>
</div>
</body>
</html>