Support flexible base paths and thin proxies

This commit is contained in:
Codex
2026-07-08 06:38:41 +00:00
parent bbe7b6f562
commit 49e9f5e640
10 changed files with 233 additions and 29 deletions
+7 -2
View File
@@ -1,15 +1,16 @@
# AI Share
`aishare` captures public ChatGPT shared conversations and publishes immutable read-only snapshots at `https://xcel.me/aishare/<slug>`.
`aishare` captures public ChatGPT shared conversations and publishes immutable read-only snapshots under a configurable base path.
V1 scope:
- accepts only public `https://chatgpt.com/share/...` and `https://chat.openai.com/share/...` URLs
- admin-only capture/delete UI at `/aishare/admin`
- admin-only capture/delete UI at `${AISHARE_BASE_PATH}/admin`
- public reader pages generated as static artifacts under `/data/html/<slug>`
- screenshots under `/data/screenshots/<slug>`
- SQLite state in `/data/aishare.db`
- Docker Compose deployment with Playwright Chromium and multilingual Noto fonts
- relative reader/admin links so the same origin can be proxied from different hostnames and path prefixes
## Local Development
@@ -25,6 +26,8 @@ Open:
- admin: `http://127.0.0.1:8088/aishare/admin`
- public snapshots: `http://127.0.0.1:8088/aishare/<slug>`
Set `AISHARE_BASE_PATH=/` to serve at the domain root, or a path such as `/services/aishare` to serve directly under a different prefix.
## Git Remote
```bash
@@ -34,3 +37,5 @@ git remote add origin gitea:cabbage/aishare.git
## Deploy
See [docs/deploy-titan.md](docs/deploy-titan.md).
For small servers that should only proxy to an existing AI Share origin, see [proxy/README.md](proxy/README.md).