diff --git a/docs/marketing-copy.md b/docs/marketing-copy.md index 0e3c2e57..957afb41 100644 --- a/docs/marketing-copy.md +++ b/docs/marketing-copy.md @@ -168,8 +168,9 @@ Free: 25,000 credits a month. Team: $29 a month for 1,000,000 credits. More cred Public open source projects get 1,000,000 credits a month free, on any plan. **Is it open source?** -Yes. The server, CLI and fingerprint library are Apache-2.0, in https://github.com/DocSpring/visualci. Self-hosting -needs Postgres, an S3-compatible bucket and a machine for the renderers. +Yes. The server, CLI and fingerprint library are Apache-2.0, in https://github.com/DocSpring/visualci. The server is +written in Laravel Rust (https://laravel.com/rust). Self-hosting needs Postgres, an S3-compatible bucket and a machine +for the renderers. **Who makes it?** DocSpring, which has generated PDFs for its customers since 2017. VisualCI grew out of DocSpring's own PDF test diff --git a/server/frontend/content/docs/self-hosting.md b/server/frontend/content/docs/self-hosting.md index da1b4620..9045eaad 100644 --- a/server/frontend/content/docs/self-hosting.md +++ b/server/frontend/content/docs/self-hosting.md @@ -14,16 +14,31 @@ VisualCI is open source under Apache-2.0, in one repository: [github.com/DocSpri ## The server +The server is written in [Laravel Rust](https://laravel.com/rust), in the repository's `app/` folder. Its binary is `visualci-app`: with no arguments it serves, and `visualci-app migrate` runs the database migrations, so run that before starting a new version. `visualci-app key:generate` makes an `APP_KEY`. + Set these environment variables: | Variable | What it is | | --- | --- | -| `DATABASE_URL` | The Postgres URL. Migrations run when the server starts. | -| `S3_ENDPOINT`, `S3_BUCKET`, `S3_ACCESS_KEY_ID`, `S3_SECRET_ACCESS_KEY` | The bucket. | -| `JWT_SECRET` | Signs sign-in sessions. | +| `DB_CONNECTION`, `DATABASE_URL` | `pgsql`, and the Postgres URL. | +| `S3_ENDPOINT`, `S3_BUCKET`, `S3_ACCESS_KEY_ID`, `S3_SECRET_ACCESS_KEY` | The bucket. The server doesn't start without them. | +| `S3_REGION` | Optional: the bucket's region. Defaults to `auto`. | +| `S3_PUBLIC_ENDPOINT` | Optional: the endpoint the CLI uploads to, when it differs from the one the server uses (a store inside your cluster). | +| `APP_KEY` | The server's secret key, for encryption and signing. | | `RENDERER_TOKEN` | A secret the renderers send with every request. | | `RENDERER_VERSION` | The renderer image's version (`docker/renderer.version`). It's part of every render cache key. | -| `PUBLIC_URL` | The server's address, such as `https://visualci.example.com`. | +| `APP_URL` | The server's address, such as `https://visualci.example.com`. | + +### One host or four + +The simple setup is one host: set `APP_URL` and none of the four host URLs below, and that address serves the web app, the API and the MCP server. + +visualci.com runs on four hosts instead: the site, the web app, the API and the MCP server each have their own. For that, set all four, each with `https://` and a different host name. In production the server won't start with only some of them set. + +| Variable | What it is | +| --- | --- | +| `VISUALCI_SITE_URL`, `VISUALCI_APP_URL`, `VISUALCI_API_URL`, `VISUALCI_MCP_URL` | The addresses of the site, the web app, the API and the MCP server. | +| `OAUTH_ISSUER`, `OAUTH_AUTHORIZATION_ENDPOINT` | Sign-in for MCP clients: `OAUTH_ISSUER` is `VISUALCI_MCP_URL`, and the authorization endpoint is `/oauth/authorize`. In production the server won't start when they don't match. | | `GITHUB_CLIENT_ID`, `GITHUB_CLIENT_SECRET` | Sign-in with GitHub. | | `GITHUB_APP_ID` | Optional: a GitHub App of your own, for checks on pull requests. | diff --git a/server/frontend/src/pages/Landing.tsx b/server/frontend/src/pages/Landing.tsx index 18b79a5e..3840e9c3 100644 --- a/server/frontend/src/pages/Landing.tsx +++ b/server/frontend/src/pages/Landing.tsx @@ -435,7 +435,8 @@ export function Landing() {

Open source and self-hostable

- The server, the CLI and the fingerprint library are open source under Apache-2.0, in one repository. Self-hosting needs + The server, the CLI and the fingerprint library are open source under Apache-2.0, in one repository. The server is + written in Laravel Rust. Self-hosting needs Postgres, an S3-compatible bucket, and a machine for the renderers, which run sandboxed with no network access.