Download index.html from jetlan/ems: direct link, hf CLI and curl.
- Browser
- Download file 11.2 kB
-
https://huggingface.co/spaces/jetlan/ems/resolve/main/index.html
- Command line
-
hf download hf://spaces/jetlan/ems/index.html
-
curl -L -o index.html https://huggingface.co/spaces/jetlan/ems/resolve/main/index.html
11.2 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Nginx Docker Test - Port 10080</title> | |
| <style> | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| color: white; | |
| min-height: 100vh; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| padding: 20px; | |
| } | |
| .container { | |
| max-width: 1000px; | |
| width: 100%; | |
| padding: 40px; | |
| background: rgba(255, 255, 255, 0.1); | |
| border-radius: 20px; | |
| backdrop-filter: blur(10px); | |
| box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); | |
| text-align: center; | |
| } | |
| h1 { | |
| font-size: 3em; | |
| margin-bottom: 10px; | |
| color: white; | |
| text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); | |
| } | |
| .subtitle { | |
| font-size: 1.2em; | |
| opacity: 0.9; | |
| margin-bottom: 30px; | |
| } | |
| .status-badge { | |
| display: inline-block; | |
| padding: 12px 30px; | |
| background: linear-gradient(90deg, #4CAF50, #45a049); | |
| border-radius: 25px; | |
| font-weight: bold; | |
| font-size: 1.2em; | |
| margin: 25px 0; | |
| box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3); | |
| animation: pulse 2s infinite; | |
| } | |
| @keyframes pulse { | |
| 0% { transform: scale(1); } | |
| 50% { transform: scale(1.05); } | |
| 100% { transform: scale(1); } | |
| } | |
| .info-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | |
| gap: 25px; | |
| margin: 40px 0; | |
| } | |
| .info-card { | |
| background: rgba(255, 255, 255, 0.15); | |
| border-radius: 15px; | |
| padding: 25px; | |
| text-align: left; | |
| transition: transform 0.3s ease; | |
| } | |
| .info-card:hover { | |
| transform: translateY(-5px); | |
| background: rgba(255, 255, 255, 0.2); | |
| } | |
| .info-card h3 { | |
| color: #90caf9; | |
| margin-bottom: 15px; | |
| font-size: 1.3em; | |
| border-bottom: 2px solid rgba(144, 202, 249, 0.3); | |
| padding-bottom: 8px; | |
| } | |
| .info-item { | |
| margin: 12px 0; | |
| display: flex; | |
| align-items: center; | |
| } | |
| .info-label { | |
| font-weight: bold; | |
| min-width: 140px; | |
| color: #bbdefb; | |
| } | |
| .info-value { | |
| font-family: 'Courier New', monospace; | |
| background: rgba(0, 0, 0, 0.2); | |
| padding: 5px 12px; | |
| border-radius: 6px; | |
| flex-grow: 1; | |
| word-break: break-all; | |
| } | |
| .command-box { | |
| background: rgba(0, 0, 0, 0.25); | |
| border-radius: 10px; | |
| padding: 15px; | |
| margin: 15px 0; | |
| font-family: 'Courier New', monospace; | |
| text-align: left; | |
| border-left: 4px solid #4CAF50; | |
| } | |
| .endpoint-list { | |
| list-style: none; | |
| margin: 20px 0; | |
| } | |
| .endpoint-list li { | |
| margin: 12px 0; | |
| display: flex; | |
| align-items: center; | |
| } | |
| .endpoint-list a { | |
| color: #90caf9; | |
| text-decoration: none; | |
| font-weight: bold; | |
| padding: 8px 15px; | |
| background: rgba(144, 202, 249, 0.1); | |
| border-radius: 8px; | |
| display: inline-block; | |
| transition: all 0.3s ease; | |
| flex-grow: 1; | |
| } | |
| .endpoint-list a:hover { | |
| background: rgba(144, 202, 249, 0.2); | |
| transform: translateX(5px); | |
| } | |
| .footer { | |
| margin-top: 40px; | |
| padding-top: 20px; | |
| border-top: 1px solid rgba(255, 255, 255, 0.1); | |
| font-size: 0.9em; | |
| opacity: 0.8; | |
| display: flex; | |
| justify-content: space-between; | |
| flex-wrap: wrap; | |
| gap: 20px; | |
| } | |
| .timestamp { | |
| font-style: italic; | |
| } | |
| @media (max-width: 768px) { | |
| .container { | |
| padding: 20px; | |
| } | |
| h1 { | |
| font-size: 2em; | |
| } | |
| .info-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| .footer { | |
| flex-direction: column; | |
| text-align: center; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <h1>π Nginx Docker Container</h1> | |
| <div class="subtitle">Running on Port 10080</div> | |
| <div class="status-badge">β STATUS: ACTIVE</div> | |
| <div class="info-grid"> | |
| <div class="info-card"> | |
| <h3>π‘ Server Configuration</h3> | |
| <div class="info-item"> | |
| <span class="info-label">Container Port:</span> | |
| <span class="info-value">10080</span> | |
| </div> | |
| <div class="info-item"> | |
| <span class="info-label">Nginx Version:</span> | |
| <span class="info-value">${NGINX_VERSION}</span> | |
| </div> | |
| <div class="info-item"> | |
| <span class="info-label">Host OS:</span> | |
| <span class="info-value">Alpine Linux</span> | |
| </div> | |
| <div class="info-item"> | |
| <span class="info-label">Server Time:</span> | |
| <span class="info-value" id="server-time">Loading...</span> | |
| </div> | |
| </div> | |
| <div class="info-card"> | |
| <h3>π Access Endpoints</h3> | |
| <ul class="endpoint-list"> | |
| <li> | |
| <a href="/" target="_blank">π Home Page (This Page)</a> | |
| </li> | |
| <li> | |
| <a href="/status" target="_blank">π Status Page</a> | |
| </li> | |
| <li> | |
| <a href="/health" target="_blank">β€οΈ Health Check</a> | |
| </li> | |
| </ul> | |
| <div class="command-box"> | |
| # Test from command line:<br> | |
| curl http://localhost:10080/ | |
| </div> | |
| </div> | |
| <div class="info-card"> | |
| <h3>β‘ Quick Docker Commands</h3> | |
| <div class="command-box"> | |
| # Build the image:<br> | |
| docker build -t nginx-10080 . | |
| </div> | |
| <div class="command-box"> | |
| # Run the container:<br> | |
| docker run -d -p 10080:10080 --name my-nginx nginx-10080 | |
| </div> | |
| <div class="command-box"> | |
| # View logs:<br> | |
| docker logs my-nginx | |
| </div> | |
| </div> | |
| </div> | |
| <div class="info-card"> | |
| <h3>π Connection Information</h3> | |
| <div class="info-item"> | |
| <span class="info-label">Container IP:</span> | |
| <span class="info-value" id="container-ip">Fetching...</span> | |
| </div> | |
| <div class="info-item"> | |
| <span class="info-label">External Access:</span> | |
| <span class="info-value">http://your-host:10080</span> | |
| </div> | |
| <div class="info-item"> | |
| <span class="info-label">Internal Access:</span> | |
| <span class="info-value">http://localhost:10080</span> | |
| </div> | |
| </div> | |
| <div class="footer"> | |
| <div class="timestamp" id="timestamp">Page loaded at: <span id="load-time"></span></div> | |
| <div>Nginx Docker Test Container | Port 10080</div> | |
| </div> | |
| </div> | |
| <script> | |
| // Update server time | |
| function updateTime() { | |
| const now = new Date(); | |
| const serverTime = document.getElementById('server-time'); | |
| const loadTime = document.getElementById('load-time'); | |
| const timestamp = now.toLocaleString('en-US', { | |
| timeZone: 'UTC', | |
| year: 'numeric', | |
| month: '2-digit', | |
| day: '2-digit', | |
| hour12: false, | |
| hour: '2-digit', | |
| minute: '2-digit', | |
| second: '2-digit' | |
| }); | |
| serverTime.textContent = timestamp + ' UTC'; | |
| loadTime.textContent = now.toLocaleString(); | |
| // Update container info | |
| const containerIp = document.getElementById('container-ip'); | |
| containerIp.textContent = window.location.hostname; | |
| } | |
| // Update time immediately and then every second | |
| updateTime(); | |
| setInterval(updateTime, 1000); | |
| // Add some interactivity | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const statusBadge = document.querySelector('.status-badge'); | |
| let clickCount = 0; | |
| statusBadge.addEventListener('click', function() { | |
| clickCount++; | |
| const messages = [ | |
| "β Still running!", | |
| "π Going strong!", | |
| "πͺ No issues detected!", | |
| "π₯ Performance optimal!", | |
| "π All systems go!" | |
| ]; | |
| const randomMessage = messages[Math.floor(Math.random() * messages.length)]; | |
| this.textContent = `β STATUS: ${randomMessage}`; | |
| // Reset after 3 seconds | |
| setTimeout(() => { | |
| this.textContent = "β STATUS: ACTIVE"; | |
| }, 3000); | |
| }); | |
| // Simulate loading animation | |
| const infoCards = document.querySelectorAll('.info-card'); | |
| infoCards.forEach((card, index) => { | |
| card.style.opacity = '0'; | |
| card.style.transform = 'translateY(20px)'; | |
| setTimeout(() => { | |
| card.style.transition = 'opacity 0.5s ease, transform 0.5s ease'; | |
| card.style.opacity = '1'; | |
| card.style.transform = 'translateY(0)'; | |
| }, index * 200); | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> |