add jetstream service

This commit is contained in:
Charlotte Som 2024-11-27 04:00:54 +00:00
parent 1acd3aaeda
commit 55895e63c6
5 changed files with 44 additions and 0 deletions

3
.gitmodules vendored
View file

@ -1,3 +1,6 @@
[submodule "relay"]
path = relay
url = https://git.lavender.software/cerulea/relay.git
[submodule "jetstream/src"]
path = jetstream/src
url = https://github.com/bluesky-social/jetstream.git

23
jetstream/flake.lock Normal file
View file

@ -0,0 +1,23 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 0,
"narHash": "sha256-df3dJApLPhd11AlueuoN0Q4fHo/hagP75LlM5K1sz9g=",
"path": "/nix/store/ly4s3hw35dd1c2vsd694y2715pc1d2c1-source",
"type": "path"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

14
jetstream/flake.nix Normal file
View file

@ -0,0 +1,14 @@
{
description = "jetstream";
outputs = { self, nixpkgs }: let
pkgs = import nixpkgs { system = "x86_64-linux"; };
in {
devShells."x86_64-linux".default = pkgs.mkShell {
buildInputs = [
pkgs.go
pkgs.stdenv
];
};
};
}

3
jetstream/run.sh Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/bash
./src/jetstream --ws-url 'ws://127.0.0.1:3000/xrpc/com.atproto.sync.subscribeRepos' --liveness-ttl 10000m

1
jetstream/src Submodule

@ -0,0 +1 @@
Subproject commit 0ab10bd041fe1fdf682d3964b20d944905c4862d