mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-30 00:19:30 +00:00
The API runs unprivileged (secubox) but probed the container via lxc-info/occ WITHOUT sudo and with lxc_path=/srv/lxc (container is /data/lxc) → status always 'Stopped', cloud.local domain, empty version/users/disk (and a 500 once the path was corrected, from a PermissionError on /data/lxc). Now: privilege-free TCP port probe for liveness, all container ops via 'sudo nextcloudctl' (the sole sudoers surface, incl. its occ passthrough), a daemon-thread 60s cache for the slow occ fields (version/users/storage) so /status stays fast, real data_path, and a public web_url from the domain. Webui restyled to the /certs/ cyan hybrid-skin (361 lines, emoji cards, live pulse, 30s refresh); every endpoint preserved. Needs (board drift): NoNewPrivileges=false drop-in (sudo was blocked) and [nextcloud] domain=nc.gk2.secubox.in in secubox.conf. Co-Authored-By: Gerald KERMA <devel@cybermind.fr> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| main.py | ||