2026-06-20 23:00:28 +08:00
2026-06-20 23:00:28 +08:00
2026-06-18 22:29:30 +08:00
2026-06-18 22:19:28 +08:00
2026-06-18 22:29:30 +08:00
2026-06-18 22:29:30 +08:00
2026-06-20 22:56:57 +08:00

Python server

This folder contains a standalone Python implementation of the original Node.js server.

Run

Install dependencies:

python -m pip install -r requirements.txt

Start the server from this folder:

python server.py

The server reads config.json from this folder and serves bundled assets from resources/.

Notes

  • /, /new, /api/command?id={id}, /api/command/{id}, /server.lua, /rawterm.lua, /string_pack.lua, /.well-known/acme-challenge/{file}, WebSocket relay paths, and :9991/metrics are implemented.
  • The main page is resources/index.html and uses simple {{...}} placeholders instead of EJS.
  • The original /music pages and upload/conversion endpoints are intentionally not implemented.
  • If config.json sets isSecure to true, the server loads the same Let's Encrypt certificate paths as the Node.js implementation and listens on port 443.
S
Description
这是用于 cc-tweaked-remote-desktop 的python服务端
Readme MIT 152 KiB
Languages
Lua 85.4%
Python 9.9%
HTML 4.7%