main
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/metricsare implemented.- The main page is
resources/index.htmland uses simple{{...}}placeholders instead of EJS. - The original
/musicpages and upload/conversion endpoints are intentionally not implemented. - If
config.jsonsetsisSecuretotrue, the server loads the same Let's Encrypt certificate paths as the Node.js implementation and listens on port443.
Languages
Lua
85.4%
Python
9.9%
HTML
4.7%