Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 5, 2024. It is now read-only.
/self-hostPublic archive

Learn how to self-host Beeper

License

NotificationsYou must be signed in to change notification settings

beeper/self-host

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

We've made selt-hosting Beeper bridges infinitely easier! We recommend using our new toolbridge-manager rather than this old method.


(deprecated) Self-Host Beeper

If you're just looking to install Beeper, you can get ithere. If you're a developer wanting to contribute or if you want to self-host Beeper on your own infrastructure, read on.

How Beeper works


Read the fullFAQ

Beeper is built on top of an open source chat protocol calledMatrix. When we started building Beeper, we made a fundamental decision to open source the majority of our backend code and provide you with the option to self-host Beeper. We chose to do this because:

  • We want you to be able to inspect the source code that Beeper uses to connect to other chat networks
  • We want to contribute to the Matrix ecosystem
  • We want to provide great libraries for others to develop open source Matrix bridges

Our infrastructure stack is composed of:

Beeper Clients

Matrix Homeserver

Open Source, Beeper-maintained Matrix bridges

mautrix/whatsappmautrix/signal
mautrix/telegrammautrix/facebook
mautrix/iMessagemautrix/twitter
android-smsmautrix/discord
mautrix/slackmautrix/instagram
hifi/heisenbridgemautrix/googlechat
beeper/linkedinbeeper/groupme

Open source, community maintained Matrix bridges, Beeper sponsored

fair/kakaotalkfair/line

What is a Matrix bridge?Learn more

Self-Host Install Guide


Self hosting Beeper is possible, but not an easy task right now. It requires experience and/or willingness to learn Linux system administration.

Note: only open source Matrix clients like Element or SchildiChat can connect to a self-hosted system at this time. Beeper clients require a Beeper account and use Beeper’s infrastructure.

Instructions (easiest path)

💡 We recommend using thehttps://github.com/spantaleev/matrix-docker-ansible-deploy playbook to deploy Beeper’s Matrix bridges alongside a Matrix homeserver and client
  1. Purchase a domain

    1. We recommend Google Domains
    2. Insert this domain (egselfhostbeeper.com) wherever<insert_domain> is shown in these instructions.
  2. Select a hosting provider

    1. We recommend a 2GB RAM 50GB disk Digital Ocean Droplet
    2. Record the Droplet IP to use in next step
  3. Configure DNS

    TypeHostPriorityWeightPortTarget
    Amatrix---droplet-ip
    • Test your domain to make sure it’s pointing at the Droplet IP
      • nslookup -type=A matrix.<insert_domain>
  4. Install necessary tools on your desktop/laptop

    Mac OSbrew install git pwgenLinuxapt install git pwgen

  5. Download playbook to your desktop/laptop

    git clone https://github.com/spantaleev/matrix-docker-ansible-deploy.git && cd matrix-docker-ansible-deploy

  6. Configure the installationmkdir inventory/host_vars/matrix.<insert_domain>

  7. wget https://raw.githubusercontent.com/beeper/self-host/main/vars.yml

  8. cp vars.yml inventory/host_vars/matrix.<insert_domain>/vars.yml

  9. openinventory/host_vars/matrix.<insert_domain>/vars.yml in a text editor

    1. Insert your<insert_domain> in line 12
    2. Enter a real email address in line 27 and 40
    3. Wherever<create_secretkey> shows up (eg line 22), switch back to your terminal, runpwgen -s 64 1 and insert that key into the file
    4. Disable any bridges you do not want (saves RAM!) or enable Telegram by following instructions on Line 52
    5. Save the file.
  10. cp examples/hosts inventory/hosts

  11. Openinventory/hosts in a text editor

    1. Replace<your_domain> with your domain
    2. Replaceyour-server's external IP address> with Droplet IP
    3. add the following to the hosts file:ansible_connection=community.docker.nsenter. The hosts file shold now look like this:
[matrix_servers] matrix.YOUR.DOMAIN ansible_host=YOUR_SERVERS_IP ansible_connection=local ansible_ssh_user=root ansible_connection=community.docker.nsenter
  1. Install docker and make sure it is started

    Mac OS - Follow instructionshttps://docs.docker.com/desktop/install/mac-install

    Linux - Follow instructionshttps://docs.docker.com/desktop/install/linux-install/#generic-installation-steps

  2. Run Ansible in docker from the/matrix-docker-ansible-deploy directory. If this doesn't work, check theplaybook instructions.

    docker run -it --rm \-w /work \-v`pwd`:/work \-v$HOME/.ssh/id_rsa:/root/.ssh/id_rsa:ro \--entrypoint=/bin/sh \docker.io/devture/ansible:2.13.6-r0-1
  3. Your terminal should now show/work, then issue these commands

    1. git config --global --add safe.directory /work
    2. make roles
    3. ansible-playbook -i inventory/hosts setup.yml --tags=install-all,ensure-matrix-users-created,start
    4. Your server is now installed! Check that everything is workingansible-playbook -i inventory/hosts setup.yml --tags=self-check
      1. ignore the errors about federation

    e. Create your user account, change the command to include your preferred username (<insert_username) and password (<your_password>).

    ansible-playbook -i inventory/hosts setup.yml --extra-vars='username=<insert_username> password=<your_password> admin=yes' --tags=register-user

  4. In a browser, open our recommended Matrix client,https://app.schildi.chat/#/login

    1. Click ‘Edit’ andhttps://matrix.<your_domain> into the homeserver field, eghttps://matrix.beeptest.org then click Continue
    2. Sign in with your username/password created in step 14e
  5. Set up each bridge

    CleanShot 2023-01-26 at 23 08 40

    1. Click the + icon, then type in@whatsappbot:<your_domain> into the search bar and wait for a suggestion to appear, then click on it, then click Done. This will start a chat with the ‘bridge bot’ and provide you with a console to login and setup the bridge
    2. Click the Whatsapp Bridge Bot chat in the left panel, then send the messagehelp in the chat to see the list of commands. Each bridge has a slightly different sign in command, but it is usuallylogin,link, orlogin-qr
    3. Repeat Step 16 for each bridge you would like to configure (eg@instagrambot:<your_domain>)
    4. Great! Now all your bridges are set up
  6. Set up mobile apps

  1. Advanced and optional! Enable federation

Feedback


We would love to hear what you think about Beeper and our open source software. We hang out at #beeper:beeper.com on Matrix, or create an issue in this repository.

About

Learn how to self-host Beeper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp