-`VITE_DEFAULT_PUBKEYS` - A comma-separated list of hex pubkeys for bootstrapping web of trust.
-`VITE_PLATFORM_URL` - The url where the app will be hosted. This is only used for build-time population of meta tags.
-`VITE_PLATFORM_NAME` - The name of the app
-`VITE_PLATFORM_LOGO` - A logo url for the app
-`VITE_PLATFORM_RELAY` - A relay url that will make flotilla operate in "platform mode". Disables all space browse/add/select functionality and makes the platform relay the home page.
-`VITE_PLATFORM_ACCENT` - A hex color for the app's accent color
-`VITE_PLATFORM_DESCRIPTION` - A description of the app
-`VITE_GLITCHTIP_API_KEY` - A Sentry DSN for use with glitchtip (error reporting)
-`GLITCHTIP_AUTH_TOKEN` - A glitchtip auth token for error reporting
If you're deploying a custom version of flotilla, be sure to remove the `plausible.coracle.social` script from `app.html`. This sends analytics to a server hosted by the developer.
## Nginx/TLS (optional)
If you'd like to set up flotilla on a server you control, you'll want to set up a reverse proxy and provision a TSL certificate for the domain you'll be using. You should also make sure to add swap to your server.
There will be some parts of the following templates, for example `<SERVER NAME>`, which you'll need to fill in before running the code.
First, create an `A` record with your DNS provider pointing to the IP of your server. This will allow certbot to create your certificate later.
Next install `nginx`, `git`, and `certbot`. If you're on a debian- or ubuntu-based distro, run `sudo apt-get update && sudo apt-get install nginx git certbot python3-certbot-nginx`.
Once you've exited back to root, you can set up nginx. Place the following in a file named after your domain in the `/etc/nginx/sites-available` directory, for example, `flotilla.example.com`. This should match the `A` record you registered above.
```conf
server {
listen 80;
server_name <SERVERNAME>;
root /home/flotilla/flotilla/build;
index index.html;
location / {
try_files $uri /index.html;
}
}
```
Now you can run `certbot`, which will provision a TLS certificate for your domain and update your nginx configuration.
```
certbot --nginx -d <SERVERNAME>
```
Now, enable the site and restart nginx. If you want to be careful, run `nginx -t` before restarting nginx.
Run `pnpm run dev` to get a dev server, and `pnpm run check:watch` to watch for typescript errors. When you're ready to commit, run `pnpm run format && pnpm run lint` and fix any errors that come up.