Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85827261
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/docs/administration/kocaptcha.md b/docs/administration/kocaptcha.md
new file mode 100644
index 000000000..20cfd47f3
--- /dev/null
+++ b/docs/administration/kocaptcha.md
@@ -0,0 +1,65 @@
+Pleroma uses the [kocaptcha](https://github.com/koto-bank/kocaptcha) service for captchas by default.
+
+On the development machine, [install](https://www.rust-lang.org/tools/install) the toolchain for Rust language.
+
+Build kocaptcha binary
+```
+$ git clone https://github.com/koto-bank/kocaptcha
+$ cd kocaptcha
+$ cargo build --release
+```
+
+A new binary called `kocaptcha` will be generated at target/release in the working directory.
+Move this binary to the server.
+```
+$ scp target/release/kocaptcha root@<my-pleroma-instance>:/tmp/
+$ ssh root@<my-pleroma-instance>
+# sudo -u pleroma /bin/bash
+$ cp /tmp/kocaptcha ~/
+```
+
+To run the above binary, you will need glibc installed on the server.
+```
+# apt update
+# apt install libc6
+```
+
+Create a systemd unit file for kocaptcha service which looks like this:
+```
+$ cat /etc/systemd/system/kocaptcha.service
+[Unit]
+Description=Kocaptcha captcha service
+After=network.target
+
+[Service]
+ExecStart=/var/lib/pleroma/kocaptcha
+
+[Install]
+WantedBy = multi-user.target
+```
+
+Create Nginx configuration to point /kocaptcha to http://0.0.0.0:9093.
+Edit /etc/nginx/sites-available/pleroma.nginx and add this section at the bottom.
+```
+ location /kocaptcha/ {
+ proxy_pass http://0.0.0.0:9093/;
+ }
+```
+
+Reload nginx
+```
+# systemctl reload nginx
+```
+
+Open pleroma configuration at /opt/pleroma/config/prod.secret.exs and add the following line
+```elixir
+config :pleroma, Pleroma.Captcha.Kocaptcha, endpoint: "https://<my-pleroma-instance>/kocaptcha"
+```
+
+Restart pleroma service
+```
+# systemctl restart pleroma
+```
+
+Go to path https://<my-pleroma-instance>/registration in a new private window to see if the captcha image is loading.
+
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Oct 30, 5:08 PM (9 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1800337
Default Alt Text
(1 KB)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline