1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 02:59:00 +03:00
This commit is contained in:
Anton Afanasyeu
2026-06-11 22:45:47 +02:00
parent f878700a0c
commit fef93d7cdc
23 changed files with 831 additions and 97 deletions

View File

@@ -332,24 +332,23 @@ Flow doc: [20260607-2FA-email-mobile-auth-flow.md](20260607-2FA-email-mobile-aut
## URL shortener
**Web:** [https://s.f0xx.org](https://s.f0xx.org) (dedicated vhost; FE TLS + BE nginx **deployed 2026-06**)
**Web:** [https://s.f0xx.org](https://s.f0xx.org)
| Kind | Path | Notes |
|------|------|--------|
| Health | `GET /api/v1/health` | Returns JSON when `backend/url-shortener/public` synced to BE |
| Shorten | `POST /api/v1/shorten` | Bearer token; **501 stub** until PHP impl |
| QR | `GET /api/v1/qr/{slug}.png` | PNG |
| Redirect | `GET /{slug}` | `302` → original URL |
| Health | `GET /api/v1/health` | JSON `status: ok`, DB ping |
| Shorten | `GET/POST /api/v1/shorten` | Bearer token required |
| QR | `GET /api/v1/qr/{slug}.png` | PNG (`libqrencode-tools` on BE) |
| Redirect | `GET /{slug}` | `302` → origin; `410` if expired |
Spec: [specs/20100611_3_url_shortener.md](specs/20100611_3_url_shortener.md) · scaffold: [backend/url-shortener/](../backend/url-shortener/)
Spec: [specs/20100611_3_url_shortener.md](specs/20100611_3_url_shortener.md) · code: [backend/url-shortener/](../backend/url-shortener/)
```bash
curl -fsS https://s.f0xx.org/api/v1/health
# Full cookbook (when shorten live): backend/url-shortener/scripts/demo_curl.sh
# Bearer: php backend/url-shortener/scripts/seed_bearer.php (on BE after deploy)
export BEARER=BASE=https://s.f0xx.org backend/url-shortener/scripts/demo_curl.sh
```
**Still TODO:** sync PHP tree to BE docroot, `schema.mariadb.sql`, bearer tokens, shorten/redirect handlers.
---
## Non-HTTP services

View File

@@ -224,7 +224,7 @@ See [ndk/README.md](../ndk/README.md).
## Deferred / post-alpha
- **URL shortener** (`https://s.f0xx.org`) — standalone PHP service; SPEC [specs/20100611_3_url_shortener.md](specs/20100611_3_url_shortener.md), scaffold [backend/url-shortener/](../backend/url-shortener/); git + FE TLS live; PHP handlers TODO (~8.5 d)
- **URL shortener** (`https://s.f0xx.org`) — PHP API in [backend/url-shortener/](../backend/url-shortener/); sync to BE + `seed_bearer.php` + `libqrencode-tools`
- Internet relay gateway
- TLS on cast stream
- Passthrough video codec