Initial draft

This commit is contained in:
qtchaos
2023-12-31 16:39:55 +02:00
parent baf2169306
commit 86cd905dc8
40 changed files with 2461 additions and 2909 deletions

View File

@@ -1,16 +1,26 @@
---
title: 'Configuration'
---
# Proxy Config Reference
The environment variables for the proxy is different to adjust per platform. So we will only be listed the variables themselves, it's your job to figure out to apply them to your platform.
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`
Turnstile secret key from the cloudflare dashboard. To enable turnstile completely you will also need `JWT_SECRET` configured.
If you want turnstile verification working correctly, you will also need to configure the turnstile key on the client, not just on the proxy.
- Type: `string`
- Default: `""`
Turnstile secret key from the [Cloudflare dashboard](https://dash.cloudflare.com/sign-up?to=/:account/turnstile).
::alert{type="warning"}
Keep in mind that you will also need to [configure the Turnstile key on the client](../3.client/3.configuration.md#vite_turnstile_key) and **configure the [`JWT_SECRET`](#jwt_secret) below.**
::
### `JWT_SECRET`
A jwt secret key. **Must be 32 characters long.** Can be any random secret.
- Type: `string`
- Default: `""`
A [JWT](https://jwt.io/) secret key. This can be any random secret, but **must be 32 characters long.**