Support flexible base paths and thin proxies
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user