User Tools

Site Tools


computing:synapse

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computing:synapse [2025/04/17 20:00] oemb1905computing:synapse [2025/04/17 20:38] (current) oemb1905
Line 39: Line 39:
   nano /etc/nginx/sites-enabled/matrix.gnulinux.club   nano /etc/nginx/sites-enabled/matrix.gnulinux.club
  
-[[https://repo.haacksnetworking.org/oemb1905/haackingclub/-/blob/master/nginx/matrix-block.domain.com|matrix.gnulinux.club]]+[[https://repo.haacksnetworking.org/haacknet/haackingclub/-/blob/main/configs/webservers/nginx/nginx-matrix.gnulinux.club?ref_type=heads|matrix.gnulinux.club]]
      
 As for the element.gnulinux.club block (adjusted for your domain, of course), make sure to add a directory to the end of the block directory itself. This will help later when upgrades to Element come out, because you can just re-symlink the new update. We will do the symlink later when installing the package, for now: As for the element.gnulinux.club block (adjusted for your domain, of course), make sure to add a directory to the end of the block directory itself. This will help later when upgrades to Element come out, because you can just re-symlink the new update. We will do the symlink later when installing the package, for now:
Line 136: Line 136:
   register_new_matrix_user -c /etc/matrix-synapse/homeserver.yaml http://localhost:8008   register_new_matrix_user -c /etc/matrix-synapse/homeserver.yaml http://localhost:8008
      
-Record the password you chose in a safe location, and then uncomment the user registration on ''/etc/matrix-synapse/homeserver.yaml'' again and once again restart the service ''systemctl restart matrix-synapse''. This is required because you cannot manually create users while the ''enable_registration: true'' parameter is active. Likely, you will now want to also create a non-admin user for yourself, and the webgui is very convenient for this so just visit element.gnulinux.club and then register. Once you log in, make sure that you can access federated instances, spaces, and rooms. The last thing we need to do is add the ability for the server to send emails so users can recover accounts when needed via email. To do that, first make sure you have a working [[https://wiki.haacksnetworking.org/doku.php?id=computing:exim4|https://wiki.haacksnetworking.org/doku.php?id=computing:exim4]]email server. Please note that an incoming (IMAP) server is not needed, only outgoing (smtp/MTA). Once that is setup, add the following lines to your ''/etc/matrix-synapse/homeserver.yaml'' configuration:+Record the password you chose in a safe location, and then uncomment the user registration on ''/etc/matrix-synapse/homeserver.yaml'' again and once again restart the service ''systemctl restart matrix-synapse''. This is required because you cannot manually create users while the ''enable_registration: true'' parameter is active. Likely, you will now want to also create a non-admin user for yourself, and the webgui is very convenient for this so just visit element.gnulinux.club and then register. Once you log in, make sure that you can access federated instances, spaces, and rooms. The last thing we need to do is add the ability for the server to send emails so users can recover accounts when needed via email. To do that, first make sure you have a working email server. Please note that an incoming (IMAP) server is not needed, only outgoing (smtp/MTA). Once that is setup, add the following lines to your ''/etc/matrix-synapse/homeserver.yaml'' configuration:
  
   sudo nano /etc/matrix-synapse/homeserver.yaml   sudo nano /etc/matrix-synapse/homeserver.yaml
Line 155: Line 155:
       <remote_media_lifetime: 14d>       <remote_media_lifetime: 14d>
              
-Also, make sure to add the following line of code within each nginx http server block:+After this, your config should look something like this [[https://repo.haacksnetworking.org/haacknet/haackingclub/-/blob/main/configs/synapse/homeserver.yaml?ref_type=heads|example homeserver.yaml]]. Also, make sure to add the following line of code within each nginx http server block:
      
   <client_max_body_size 1000M;>   <client_max_body_size 1000M;>
Line 217: Line 217:
 More updates below when they come. More updates below when they come.
  
- --- //[[jonathan@haacksnetworking.org|oemb1905]] 2024/01/30 03:09//+ --- //[[alerts@haacksnetworking.org|oemb1905]] 2025/04/17 20:38//
computing/synapse.1744920047.txt.gz · Last modified: 2025/04/17 20:00 by oemb1905