The 2026-10-14 port took tea-mcp/src/phast, an older copy (light design, no OAuth). This merges matcha/phast main with its history: the black/orange phast.app and my.phast.app pages, and the Teahub-OAuth MCP server. On top, for prod: - server.py serves phast.app / and my.phast.app / from this repo (no copies), and /healthz - Dockerfile + start.sh: volume at /data, app runs unprivileged - fly.toml: phast-app, volume phast_data, GITEA_URL=https://teahub.xyz
8 lines
356 B
Bash
Executable File
8 lines
356 B
Bash
Executable File
#!/bin/sh
|
|
# The Fly volume mounts root-owned at /data: make our dirs, hand them to the app user, drop root.
|
|
set -e
|
|
for d in "${PHAST_DATA_DIR:-/data/phast}" "${FASTMCP_HOME:-/data/fastmcp}"; do
|
|
mkdir -p "$d" && chown -R 10001:10001 "$d" && chmod 700 "$d"
|
|
done
|
|
exec env HOME=/home/phast setpriv --reuid=10001 --regid=10001 --clear-groups python server.py
|