docs/pages/proxy/configuration.mdx

28 lines
957 B
Plaintext

---
title: 'Configuration'
---
# Proxy Config Reference
Adding environment variables is different for every platform, [here's a guide on how to add environment variables on Cloudflare](https://developers.cloudflare.com/workers/configuration/environment-variables/#add-environment-variables-via-the-dashboard). You'll have to do some research on your own if you aren't hosting the proxy on Cloudflare.
# Reference
### `TURNSTILE_SECRET`
- Type: `string`
- Default: `""`
Turnstile secret key from the [Cloudflare dashboard](https://dash.cloudflare.com/sign-up?to=/:account/turnstile).
<Warning>
Keep in mind that you will also need to [configure the Turnstile key on the client](../client/configuration.mdx#vite-turnstile-key) and **configure the [`JWT_SECRET`](#jwt-secret) below.**
</Warning>
### `JWT_SECRET`
- Type: `string`
- Default: `""`
A [JWT](https://jwt.io/) secret key. This can be any random secret, but **must be 32 characters long.**