diff --git a/app.py b/app.py index 83bbc77..be83b0c 100644 --- a/app.py +++ b/app.py @@ -619,8 +619,11 @@ def get_system_info(): background-color: var(--bg); color: var(--text); }} h1, h2 {{ color: var(--heading); }} .info-section {{ background: var(--section-bg); padding: 1rem; border-radius: 8px; margin: 1rem 0; }} + .info-section ul {{ margin: 0.5rem 0 0; padding-left: 1.25rem; }} + .info-section li {{ margin: 0.35rem 0; }} .config-item {{ margin: 0.5rem 0; }} - .value {{ font-family: monospace; background: var(--value-bg); padding: 0.2rem 0.4rem; border-radius: 4px; }} + .value, code {{ font-family: monospace; background: var(--value-bg); padding: 0.2rem 0.4rem; border-radius: 4px; }} + code {{ padding: 0.1rem 0.35rem; font-size: 0.9em; }} .back-link {{ display: inline-block; margin-top: 1rem; padding: 0.5rem 1rem; background: #000; color: #fff; text-decoration: none; border-radius: 8px; }} .back-link:hover {{ background: #333; }} @@ -648,12 +651,30 @@ def get_system_info():
?pw=… on a pad URL locks it with that password if it is not protected yet,
+ and unlocks it if it is — so /{{pad_id}}/?pw=s3cret is a one-step create-and-lock link{{pad_id}} (1–64 chars, [a-zA-Z0-9_-]);
+ auto-generated IDs are 8-char [a-z0-9]POST / — create a pad from the request body (curl-friendly)GET /{{pad_id}}/ — editor page
+ (?pw=… sets the password on an unprotected pad, unlocks a protected one)GET /{{pad_id}}/raw — raw text (auth via ?pw=… for protected pads)GET /system/info — this pageGET /health — JSON health check (200 ok / 503 degraded)GET /system/metrics — Prometheus metrics, disabled by default/ws/{{pad_id}} — live collaboration