~jadedctrl/jam-xwx-moe

Showing details for patch 4c53b21178c965d6ddea2dfca57590d846bba1bc.
2023-08-09 (Wed), 1:22 AM - Jaidyn Ann - 4c53b21178c965d6ddea2dfca57590d846bba1bc

Agordi CAPTCHA-on al nia propra CAPTCHA-servilo

… kiu montras belegajn robottestajn defiojn,
faritaj de Tirifto! c:
Summary of changes
19 files added
  • kaptĉapelo/captcha/kaptilo1.png
  • kaptĉapelo/captcha/kaptilo1.txt
  • kaptĉapelo/captcha/kaptilo2.png
  • kaptĉapelo/captcha/kaptilo2.txt
  • kaptĉapelo/captcha/kaptilo3.png
  • kaptĉapelo/captcha/kaptilo3.txt
  • kaptĉapelo/captcha/kaptilo4.png
  • kaptĉapelo/captcha/kaptilo4.txt
  • kaptĉapelo/captcha/kaptilo5.png
  • kaptĉapelo/captcha/kaptilo5.txt
  • kaptĉapelo/captcha/kaptilo6.png
  • kaptĉapelo/captcha/kaptilo6.txt
  • kaptĉapelo/captcha/kaptilo7.png
  • kaptĉapelo/captcha/kaptilo7.txt
  • kaptĉapelo/captcha/kaptilo8.png
  • kaptĉapelo/captcha/kaptilo8.txt
  • kaptĉapelo/captcha/kaptilo9.png
  • kaptĉapelo/captcha/kaptilo9.txt
  • kaptĉapelo/push.sh
1 files modified with 9 lines added and 1 lines removed
  • pleroma/prod.exs with 9 added and 1 removed lines
Binary files old-jam-xwx-moe/kaptĉapelo/captcha/kaptilo1.png and new-jam-xwx-moe/kaptĉapelo/captcha/kaptilo1.png differ
diff -rN -u "old-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo1.txt" "new-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo1.txt"
--- "old-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo1.txt"	1970-01-01 00:00:00.000000000 +0000
+++ "new-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo1.txt"	2024-11-23 10:27:17.275545185 +0000
@@ -0,0 +1 @@
+knabo
\ No newline at end of file
Binary files old-jam-xwx-moe/kaptĉapelo/captcha/kaptilo2.png and new-jam-xwx-moe/kaptĉapelo/captcha/kaptilo2.png differ
diff -rN -u "old-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo2.txt" "new-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo2.txt"
--- "old-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo2.txt"	1970-01-01 00:00:00.000000000 +0000
+++ "new-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo2.txt"	2024-11-23 10:27:17.275545185 +0000
@@ -0,0 +1 @@
+knabino
\ No newline at end of file
Binary files old-jam-xwx-moe/kaptĉapelo/captcha/kaptilo3.png and new-jam-xwx-moe/kaptĉapelo/captcha/kaptilo3.png differ
diff -rN -u "old-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo3.txt" "new-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo3.txt"
--- "old-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo3.txt"	1970-01-01 00:00:00.000000000 +0000
+++ "new-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo3.txt"	2024-11-23 10:27:17.275545185 +0000
@@ -0,0 +1 @@
+knabino
\ No newline at end of file
Binary files old-jam-xwx-moe/kaptĉapelo/captcha/kaptilo4.png and new-jam-xwx-moe/kaptĉapelo/captcha/kaptilo4.png differ
diff -rN -u "old-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo4.txt" "new-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo4.txt"
--- "old-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo4.txt"	1970-01-01 00:00:00.000000000 +0000
+++ "new-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo4.txt"	2024-11-23 10:27:17.275545185 +0000
@@ -0,0 +1 @@
+knabo
\ No newline at end of file
Binary files old-jam-xwx-moe/kaptĉapelo/captcha/kaptilo5.png and new-jam-xwx-moe/kaptĉapelo/captcha/kaptilo5.png differ
diff -rN -u "old-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo5.txt" "new-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo5.txt"
--- "old-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo5.txt"	1970-01-01 00:00:00.000000000 +0000
+++ "new-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo5.txt"	2024-11-23 10:27:17.275545185 +0000
@@ -0,0 +1 @@
+knabo
\ No newline at end of file
Binary files old-jam-xwx-moe/kaptĉapelo/captcha/kaptilo6.png and new-jam-xwx-moe/kaptĉapelo/captcha/kaptilo6.png differ
diff -rN -u "old-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo6.txt" "new-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo6.txt"
--- "old-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo6.txt"	1970-01-01 00:00:00.000000000 +0000
+++ "new-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo6.txt"	2024-11-23 10:27:17.275545185 +0000
@@ -0,0 +1 @@
+knabino
\ No newline at end of file
Binary files old-jam-xwx-moe/kaptĉapelo/captcha/kaptilo7.png and new-jam-xwx-moe/kaptĉapelo/captcha/kaptilo7.png differ
diff -rN -u "old-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo7.txt" "new-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo7.txt"
--- "old-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo7.txt"	1970-01-01 00:00:00.000000000 +0000
+++ "new-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo7.txt"	2024-11-23 10:27:17.275545185 +0000
@@ -0,0 +1 @@
+knabino
\ No newline at end of file
Binary files old-jam-xwx-moe/kaptĉapelo/captcha/kaptilo8.png and new-jam-xwx-moe/kaptĉapelo/captcha/kaptilo8.png differ
diff -rN -u "old-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo8.txt" "new-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo8.txt"
--- "old-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo8.txt"	1970-01-01 00:00:00.000000000 +0000
+++ "new-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo8.txt"	2024-11-23 10:27:17.275545185 +0000
@@ -0,0 +1 @@
+knabo
\ No newline at end of file
Binary files old-jam-xwx-moe/kaptĉapelo/captcha/kaptilo9.png and new-jam-xwx-moe/kaptĉapelo/captcha/kaptilo9.png differ
diff -rN -u "old-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo9.txt" "new-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo9.txt"
--- "old-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo9.txt"	1970-01-01 00:00:00.000000000 +0000
+++ "new-jam-xwx-moe/kapt\304\211apelo/captcha/kaptilo9.txt"	2024-11-23 10:27:17.275545185 +0000
@@ -0,0 +1 @@
+knabo
\ No newline at end of file
diff -rN -u "old-jam-xwx-moe/kapt\304\211apelo/push.sh" "new-jam-xwx-moe/kapt\304\211apelo/push.sh"
--- "old-jam-xwx-moe/kapt\304\211apelo/push.sh"	1970-01-01 00:00:00.000000000 +0000
+++ "new-jam-xwx-moe/kapt\304\211apelo/push.sh"	2024-11-23 10:27:17.275545185 +0000
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+RSYNC_DRYRUN="--dry-run"
+if test "$1" = "--real"; then
+	RSYNC_DRYRUN=""
+fi
+
+rsync $RSYNC_DRYRUN --recursive --delete --archive --verbose captcha/ $(whoami)@xwx.moe:/opt/kaptĉapelo/
+
+if test "$RSYNC_DRYRUN" = "--dry-run"; then
+	echo "=================================================="
+	echo "Ran in --dry-run mode!"
+	echo "Try '$(basename "$0") --real' if the output seems OK."
+	echo "=================================================="
+fi
diff -rN -u old-jam-xwx-moe/pleroma/prod.exs new-jam-xwx-moe/pleroma/prod.exs
--- old-jam-xwx-moe/pleroma/prod.exs	2024-11-23 10:27:17.275545185 +0000
+++ new-jam-xwx-moe/pleroma/prod.exs	2024-11-23 10:27:17.275545185 +0000
@@ -24,12 +24,19 @@
   do: import_config("prod.exported_from_db.secret.exs")
 
 
+config :pleroma, Pleroma.Captcha.Kocaptcha, endpoint: "https://kap.jam.xwx.moe"
+
+config :pleroma, Pleroma.Captcha,
+  enabled: true,
+  seconds_valid: 3000,
+  method: Pleroma.Captcha.Kocaptcha
+
 config :pleroma, :instance,
   name: "Mancardo Jamada",
   email: "xwx@posteo.org",
   notify_email: "xwx@posteo.org",
   limit: 50000,
-  registrations_open: false
+  registrations_open: true
 
 config :pleroma, :instance, static_dir: "/opt/pleroma/instance/static"
 config :pleroma, Pleroma.Uploaders.Local, uploads: "/opt/pleroma/uploads"
@@ -86,6 +93,7 @@
     webPushNotifications: false
   }
 
+
 config :pleroma, :markup,
   allow_inline_images: true,
   allow_headings: true,