From b837f291b5bb8ce21a53334deb4d5afa0329b171 Mon Sep 17 00:00:00 2001 From: wukko Date: Sun, 20 Oct 2024 17:59:38 +0600 Subject: [PATCH] docs/protect-an-instance: fix image sizes, add a secret warning --- docs/protect-an-instance.md | 57 ++++++++++++++++++++++++++++++------- 1 file changed, 47 insertions(+), 10 deletions(-) diff --git a/docs/protect-an-instance.md b/docs/protect-an-instance.md index c95bf135..5b9aea1f 100644 --- a/docs/protect-an-instance.md +++ b/docs/protect-an-instance.md @@ -13,32 +13,69 @@ all you need is a free cloudflare account to get started. cloudflare dashboard interface might change over time, but basics should stay the same. +> [!CAUTION] +> never share the turnstile secret key, always keep it private. if accidentally exposed, rotate it in widget settings. + 1. open [the cloudflare dashboard](https://dash.cloudflare.com/) and log into your account. + 2. once logged in, select `turnstile` in the sidebar. -![](images/protect-an-instance/sidebar.png) +
+

+ +

+
+ 3. press `add widget`. -![](images/protect-an-instance/add.png) +
+

+ +

+
+ 4. enter the widget name (can be anything, such as "cobalt"). -![](images/protect-an-instance/name.png) +
+

+ +

+
+ 5. add cobalt frontend domains you want the widget to work with. you can change this list later at any time. - if you want to use your processing instance with [cobalt.tools](https://cobalt.tools/) frontend, then add `cobalt.tools` to the list. -![](images/protect-an-instance/domain.png) +
+

+ +

+
+ 6. select `invisible` widget mode. -![](images/protect-an-instance/mode.png) +
+

+ +

+
+ 7. press `create`. + 8. keep the page with sitekey and secret key open, you'll need them later. if you closed it, no worries! just open the same turnstile page and press "settings" on your freshly made turnstile widget. -**never share your secret turnstile key with anyone.** -![](images/protect-an-instance/created.png) - -you've successfully created a turnstile widget! time to add it to your processing instance. +
+

+ +

+
+
+

+ you've successfully created a turnstile widget! + time to add it to your processing instance. +

+
### enable turnstile on your processing instance this tutorial assumes that you only have `API_URL` in your `environment` variables list. if you have other variables there, just add new ones after existing ones. -> [!IMPORTANT] +> [!CAUTION] > never use any of the values from the tutorial, especially `JWT_SECRET`! 1. open your `docker-compose.yml` config file in any text editor of choice.