|
|
<!DOCTYPE html> |
|
|
<html> |
|
|
<head> |
|
|
<title>OpenResty with Authentication</title> |
|
|
<style> |
|
|
body { |
|
|
width: 35em; |
|
|
margin: 0 auto; |
|
|
font-family: Tahoma, Verdana, Arial, sans-serif; |
|
|
padding: 2em; |
|
|
background-color: #f5f5f5; |
|
|
} |
|
|
.container { |
|
|
background: white; |
|
|
padding: 2em; |
|
|
border-radius: 8px; |
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1); |
|
|
} |
|
|
.auth-info { |
|
|
background: #e7f3ff; |
|
|
padding: 1em; |
|
|
border-radius: 4px; |
|
|
margin: 1em 0; |
|
|
} |
|
|
</style> |
|
|
</head> |
|
|
<body> |
|
|
<div class="container"> |
|
|
<h1>OpenResty with Authentication</h1> |
|
|
<p>Welcome to a secure OpenResty server!</p> |
|
|
|
|
|
<div class="auth-info"> |
|
|
<h3>Authentication Details:</h3> |
|
|
<ul> |
|
|
<li><strong>Username:</strong> {Username}</li> |
|
|
<li><strong>Password:</strong> {Password}</li> |
|
|
<li><strong>Auth Method:</strong> Basic HTTP + Lua Script</li> |
|
|
</ul> |
|
|
</div> |
|
|
|
|
|
<p>This server is protected with both basic authentication and Lua-based access control.</p> |
|
|
|
|
|
<p><a href="/health">Health Check</a></p> |
|
|
</div> |
|
|
</body> |
|
|
</html> |