init
This commit is contained in:
commit
1e11c8ca5e
12 changed files with 579 additions and 0 deletions
24
site/admin/index.html
Normal file
24
site/admin/index.html
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Admin - 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-red-400">Admin Page</h1>
|
||||
<p class="text-gray-300">Only admins can see this page!</p>
|
||||
<div class="bg-red-900/20 border border-red-500 rounded p-4 text-red-300">
|
||||
<p class="text-sm">🔒 This page is protected by nginx auth_request</p>
|
||||
<p class="text-sm">Only users with "admin" role can access</p>
|
||||
</div>
|
||||
|
||||
<div class="space-x-4">
|
||||
<a href="/" class="px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded">Home</a>
|
||||
<a href="/logout" class="px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded">Logout</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue