{"id":26490026,"url":"https://github.com/guysoft/pleromapi","last_synced_at":"2025-03-20T07:54:51.416Z","repository":{"id":64943350,"uuid":"298569249","full_name":"guysoft/PleromaPi","owner":"guysoft","description":"RaspberryPi / CustomPiOS distro that run Pleroma out of the box","archived":false,"fork":false,"pushed_at":"2025-02-09T09:12:16.000Z","size":67,"stargazers_count":37,"open_issues_count":5,"forks_count":2,"subscribers_count":5,"default_branch":"devel","last_synced_at":"2025-02-09T10:22:10.904Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guysoft.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-25T12:41:08.000Z","updated_at":"2025-02-09T09:12:21.000Z","dependencies_parsed_at":"2022-12-19T05:57:34.019Z","dependency_job_id":null,"html_url":"https://github.com/guysoft/PleromaPi","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guysoft%2FPleromaPi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guysoft%2FPleromaPi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guysoft%2FPleromaPi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guysoft%2FPleromaPi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guysoft","download_url":"https://codeload.github.com/guysoft/PleromaPi/tar.gz/refs/heads/devel","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244574733,"owners_count":20474818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-20T07:54:50.894Z","updated_at":"2025-03-20T07:54:51.408Z","avatar_url":"https://github.com/guysoft.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"PleromaPi\n=========\n\nAn out of the box `Raspberry Pi \u003chttp://www.raspberrypi.org/\u003e`_ Raspbian distro that runs `Pleroma \u003chttps://pleroma.social/\u003e`_ using Docker and Nginx-proxy as a reverse proxy, with letsencrypt.\nIt uses the `docker compose yaml for pleroma here \u003chttps://git.pleroma.social/guysoft/pleroma-docker-compose/-/blob/devel/docker-compose.yml\u003e`_.\n\n\nWhere to get it?\n----------------\nYou can use the `pi-imager \u003chttps://github.com/guysoft/pi-imager/releases\u003e`_ commuity raspberrypi imager here, unofficial section.\n\nOr download directly form the official mirror `here \u003chttp://unofficialpi.org/Distros/PleromaPi\u003e`_\n\nHow to use it?\n--------------\n\n#. Unzip the image and install it to an SD card `like any other Raspberry Pi image \u003chttps://www.raspberrypi.org/documentation/installation/installing-images/README.md\u003e`_\n#. Configure your WiFi by editing ``pleromapi-wpa-supplicant.txt`` at the root of the flashed card when using it like a flash drive\n#. Configure the Pleroma settings at ``/boot/docker-compose/pleroma/environments/pleroma/pleroma.env`` and set::\n\n    # fill in your specific data below\n    # otherwise you won't get an https certificate\n    ADMIN_EMAIL=admin@ops.pleroma.social\n    NOTIFY_EMAIL=pleroma+admin@ops.pleroma.social\n    DOMAIN=pleroma.gnethomelinux.com\n    VIRTUAL_HOST=pleroma.gnethomelinux.com\n    LETSENCRYPT_HOST=pleroma.gnethomelinux.com\n    LETSENCRYPT_EMAIL=guysoft@gmail.com\n\n#. Boot the Pi from the SD card\n#. Hostname is ``pleromapi`` (not ``raspberrypi`` as usual), username: ``ubuntu`` and inital password is: ``ubuntu``. You will be prompted to change it on login.\n#. After a few minutes, Pleroma will only work on ``https://DOMAIN`` you provided above. Because it blocks non-https communication on the domain. You should be able to access ``https://pleromapi.local/`` or if you are using ipv6 ``https://pleromapi/`` for testing, but it will how up as blank or with an https error. Note you have to use https because of how pleroma works. \n#. Create an admin account on Pleroma by running the script on the Pi: ``/home/pi/scripts/make_admin_user``\n#. You can change the settings of the Pleroma/nginx-proxy stack in the files located at ``/boot/docker-compose/pleroma/`` and ``/boot/docker-compose/nginx-proxy/``.\n\n\nRequirements\n------------\n* A domain pointing to your Pi's IP.\n* 2A power supply\n* RaspberryPi 2, 3B, 3B+, 4B (not 1 and zero)\n* A domain, because you need an https valid certifiacte\n\nFeatures\n--------\n\n* Pleroma Pre-installed using docker\n* Nginx-proxy to manage reverse proxy and certificates\n\n\nDeveloping\n----------\n\nRequirements\n~~~~~~~~~~~~\n\n#. Docker or Vagrant, docker recommended\n#. Downloaded `Ubuntu for RaspberryPi image \u003chttps://ubuntu.com/download/raspberry-pi/\u003e`_ image. Official releases use the LTS version.\n#. Root privileges for chroot\n#. Bash\n#. sudo (the script itself calls it, running as root without sudo won't work)\n\nBuild PleromaPi\n~~~~~~~~~~~~~~~\n\nPleromaPi can be built using docker running either on an intel or RaspberryPi (supported ones listed).\nBuild requires about 4.5 GB of free space available.\nYou can build it assuming you already have docker installed issuing the following commands::\n\n    \n    git clone https://github.com/guysoft/PleromaPi.git\n    cd PleromaPi/src/image\n    wget -c --trust-server-names 'https://cdimage.ubuntu.com/releases/20.04.2/release/ubuntu-20.04.4-preinstalled-server-arm64+raspi.img.xz'\n    cd ..\n    sudo docker compose up -d\n    sudo docker exec -it pleromapi-build build\n    \nBuilding PleromaPi Variants\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nPleromaPi supports building variants, which are builds with changes from the main release build. An example and other variants are available in the folder ``src/variants/example``.\n\nTo build a variant use::\n\n    sudo docker exec -it pleromapi-build build [Variant]\n    \nBuilding Using Vagrant\n~~~~~~~~~~~~~~~~~~~~~~\nThere is a vagrant machine configuration to let build PleromaPi in case your build environment behaves differently. Unless you do extra configuration, vagrant must run as root to have nfs folder sync working.\n\nTo use it::\n\n    sudo apt-get install vagrant nfs-kernel-server\n    sudo vagrant plugin install vagrant-nfs_guest\n    sudo modprobe nfs\n    cd PleromaPi/src/vagrant\n    sudo vagrant up\n\nAfter provisioning the machine, its also possible to run a nightly build which updates from devel using::\n\n    cd PleromaPi/src/vagrant\n    run_vagrant_build.sh\n    \nTo build a variant on the machine simply run::\n\n    cd PleromaPi/src/vagrant\n    run_vagrant_build.sh [Variant]\n\nUsage\n~~~~~\n\n#. If needed, override existing config settings by creating a new file ``src/config.local``. You can override all settings found in ``src/config``. If you need to override the path to the Raspbian image to use for building PleromaPi, override the path to be used in ``ZIP_IMG``. By default, the most recent file matching ``*-raspbian.zip`` found in ``src/image`` will be used.\n#. Run ``src/build_dist`` as root.\n#. The final image will be created in ``src/workspace``\n\nCode contribution would be appreciated!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguysoft%2Fpleromapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguysoft%2Fpleromapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguysoft%2Fpleromapi/lists"}