ActivityPub translation layer/bridge for Versia Server
Find a file
aprilthepink 1588b2e46c feat: Add db_post_from_url function
The commit adds the `db_post_from_url` function to the `conversion.rs` file. This function retrieves a post from the database based on a given URL. If the post is not found in the database, it fetches the post from the URL, saves it to the database, and returns the post. This change enhances the functionality of the codebase by providing a convenient way to retrieve and store posts.
2024-06-17 21:35:21 +02:00
.devcontainer [fix]: rm nix from devc 2024-04-16 17:39:43 +00:00
.github/workflows fix: docker build 2024-05-17 11:06:16 +02:00
migration feat: Add .env file to gitignore and update dependencies 2024-06-17 19:52:51 +02:00
src feat: Add db_post_from_url function 2024-06-17 21:35:21 +02:00
.env.example feat: Add .env file to gitignore and update dependencies 2024-06-17 19:52:51 +02:00
.envrc [feat]: basic nix dev enviroment 2024-03-21 12:41:02 +01:00
.gitattributes [feat]: basic nix dev enviroment 2024-03-21 12:41:02 +01:00
.gitignore feat: Add .env file to gitignore and update dependencies 2024-06-17 19:52:51 +02:00
build.rs [fix] format files 2024-04-09 19:55:07 +02:00
Cargo.lock feat: Add .env file to gitignore and update dependencies 2024-06-17 19:52:51 +02:00
Cargo.toml feat: Add .env file to gitignore and update dependencies 2024-06-17 19:52:51 +02:00
Changelog.md make markdown changelog 2024-04-15 00:06:13 +02:00
CODE_OF_CONDUCT.md feat! AGPL3 + Contributor Covenant 2024-04-14 23:52:42 +02:00
docker-compose.yml feat: Update API domain variable name 2024-05-17 11:30:10 +02:00
flake.lock unfinished nix module setup 2024-05-03 00:22:08 +02:00
flake.nix fix: docker build 2024-05-17 11:06:16 +02:00
Jenkinsfile [feat]: basic nix dev enviroment 2024-03-21 12:41:02 +01:00
justfile [feat]: basic nix dev enviroment 2024-03-21 12:41:02 +01:00
LICENSE feat! AGPL3 + Contributor Covenant 2024-04-14 23:52:42 +02:00
module.nix feat: oci image 2024-05-09 23:09:56 +02:00
nix-bootstrap.sh feat: Add .env file to gitignore and update dependencies 2024-06-17 19:52:51 +02:00
README.MD docs: 📝 Update README and Docker instructions 2024-05-06 09:01:21 -10:00
shell.nix unfinished nix module setup 2024-05-03 00:22:08 +02:00

Lysand Logo

Lysand ActivityPub Bridge

Nix Flake actions

ActivityPub/ActivityStreams compatibility layer for Lysand Server.

Designed as a microservice, runs as its own process and communicates with the main server via HTTP.

Development (Flakes)

This repo uses Flakes from the get-go.

# Dev shell
nix develop

# or run via cargo
nix develop -c cargo run

# build
nix build

We also provide a justfile for Makefile'esque commands.

Building

Docker/Podman

To build the Docker image, run the following command:

docker build -t activitypub:latest .

To run the docker image, use the docker-compose.yml file:

wget https://raw.githubusercontent.com/lysand-org/activitypub/main/docker-compose.yml

docker-compose up -d

If you are building from source, make sure to replace the image name in the docker-compose.yml file.