Still unsure about how to do reverse proxy 8448 or Federation part via Cloudflare tunnel method...
sudo apt install -y lsb-release wget apt-transport-https
sudo wget -O /usr/share/keyrings/matrix-org-archive-keyring.gpg https://packages.matrix.org/debian/matrix-org-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/matrix-org-archive-keyring.gpg] https://packages.matrix.org/debian/ $(lsb_release -cs) main"
sudo tee /etc/apt/sources.list.d/matrix-org.list
sudo apt update
sudo apt install matrix-synapse-py3
systemctl start matrix-synapse
systemctl enable matrix-synapse
systemctl status matrix-synapse
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
vi /etc/matrix-synapse/homeserver.yaml
# Add below lines
# registration_shared_secret: "<output from cat /dev/urandom above>"
# block_non_admin_invites: true
# limit_profile_requests_to_users_who_share_rooms: true
# allow_public_rooms_without_auth: true
# allow_guest_access: true
# Only do below once you confirmed https://servername returns correctly
# serve_server_wellknown: true
systemctl restart matrix-synapse
cloudflared.exe service install eyJhIjoiZjQ1NmM4Zjhj
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && sudo dpkg -i cloudflared.deb && sudo cloudflared service install eyJhIjoiZjQ1NmM4Zjhj
sudo lsof -nP | grep LISTEN
# Check and open firewall ports
systemctl restart matrix-synapse
register_new_matrix_user -c /etc/matrix-synapse/homeserver.yaml http://localhost:8008
docker run -p 8080:80 awesometechnologies/synapse-admin
# Add 8080 into Cloudflare tunnel list for admin panel