mirror of
https://github.com/movie-web/docs.git
synced 2025-09-13 07:53:27 +00:00
Initial draft
This commit is contained in:
@@ -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.**
|
||||
|
Reference in New Issue
Block a user