Spaces:
Paused
Paused
| from flask import Flask, render_template_string | |
| import os | |
| app = Flask(__name__) | |
| def index(): | |
| return render_template_string(""" | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Firefox VNC</title> | |
| <style> | |
| body { | |
| font-family: Arial, sans-serif; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| min-height: 100vh; | |
| margin: 0; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| } | |
| .container { | |
| background: white; | |
| padding: 40px; | |
| border-radius: 8px; | |
| box-shadow: 0 10px 25px rgba(0,0,0,0.2); | |
| text-align: center; | |
| max-width: 500px; | |
| } | |
| h1 { color: #333; margin-top: 0; } | |
| p { color: #666; font-size: 16px; } | |
| .info { | |
| background: #f9f9f9; | |
| padding: 20px; | |
| border-left: 4px solid #667eea; | |
| text-align: left; | |
| margin-top: 20px; | |
| border-radius: 4px; | |
| } | |
| .info p { margin: 10px 0; font-family: monospace; } | |
| .status { color: #28a745; font-weight: bold; } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <h1>🔥 Firefox VNC</h1> | |
| <p>Firefox VNC 服务运行中...</p> | |
| <div class="info"> | |
| <p><strong>VNC 密码:</strong> 123456</p> | |
| <p><strong>端口:</strong> 7860</p> | |
| <p><strong>状态:</strong> <span class="status">✅ 运行中</span></p> | |
| </div> | |
| </div> | |
| </body> | |
| </html> | |
| """) | |
| if __name__ == "__main__": | |
| app.run(host="0.0.0.0", port=7860, debug=False, threaded=True) |