Go to file
Midov 5db9926166 more xss protections because html a shit A SHIT 2023-04-03 14:20:47 +02:00
CODE_OF_CONDUCT.md first commit 2022-08-20 12:33:55 +02:00
LICENSE first commit 2022-08-20 12:33:55 +02:00
README.md update readme 2022-08-20 14:38:48 +02:00
config update readme 2022-08-20 14:38:48 +02:00
do-register.sh ratelimiting 2023-04-03 09:50:45 +02:00
nginx-proxy-example.conf first commit 2022-08-20 12:33:55 +02:00
registerform.sh more xss protections because html a shit A SHIT 2023-04-03 14:20:47 +02:00

Synapse Registration Bash

This custom synapse registration page relies on capthouli captcha and fcgiwrap to run the shell scripts.
TODO: write more shit

Instalation

  • Install captchouli and set captchouliurl in config file
  • Install fcgiwrap and configure your nginx to serve the registerform.sh and do-register.sh.
  • Configure nginx to send GET request to captchouli server, and POST to the registerform.sh. do-register.sh can be accessed directly.
  • Configure elementurl in config file to point at element so it can redirect to login page on success, and registrationurl to point at domain where the registration scripts are served. synapse_admin_api in the config should point at domain where your synapse exposes admin api for registrationi
  • get registration_shared_secret: from your synapse homeserver.yaml and configure it in ~/.secret file of the user that is running your fcgiwrap service (http or www-data most likely)
  • The registration scripts will display banner.png and background.jpg from the root of your webpage, so you might want to set those up.