Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/marketing-copy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 19 additions & 4 deletions server/frontend/content/docs/self-hosting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<VISUALCI_APP_URL>/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. |

Expand Down
3 changes: 2 additions & 1 deletion server/frontend/src/pages/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,8 @@ export function Landing() {
<div className="lp-stack">
<h2>Open source and self-hostable</h2>
<p>
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 <a href="https://laravel.com/rust">Laravel Rust</a>. Self-hosting needs
Postgres, an S3-compatible bucket, and a machine for the renderers, which run sandboxed with no network
access.
</p>
Expand Down
Loading