mCaptcha offers a self-hosted CAPTCHA, which is already featured in docker-compose so the installation is pretty simple.
mCaptcha offers a self-hosted CAPTCHA, which is already featured in docker-compose so the installation is pretty simple.
## Docker setup
...
...
@@ -36,7 +36,7 @@ services:
<...>
```
Of course, here you want to change `example.tld` to the domain that'll be hosting the mCaptcha interface. You can also comment this option out if you wish to setup on `localhost`.
Of course, here you want to change `example.tld` to the domain that'll be hosting the mCaptcha interface. You can also comment this option out if you wish to setup on `localhost`.
### Nginx Configuration
...
...
@@ -44,7 +44,7 @@ We also need to configure Nginx to proxy our service to the web as we do with Sh
Borrowing from Misskey, this is the config I use for mCaptcha:
```
```nginx
server{
server_nameexample.tld;
listen80;
...
...
@@ -137,5 +137,3 @@ After saving, test the captcha in the "preview" widget, but also be sure to chec
### Finishing Touches
As you probably don't want someone else creating an account on your captcha service, now's the time to go back to your `docker-compose.yml` and set `MCAPTCHA_allow_registration: false`. Otherwise, you can leave it.