Compare commits

..

No commits in common. "099af0b9cebcd55588491aa5770cc3226856641d" and "1acd3aaeda736e53fbc519bd697af8a979f7023f" have entirely different histories.

9 changed files with 0 additions and 101 deletions

3
.gitmodules vendored
View file

@ -1,6 +1,3 @@
[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

View file

@ -1 +0,0 @@
/data

View file

@ -1,23 +0,0 @@
{
"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
}

View file

@ -1,14 +0,0 @@
{
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
];
};
};
}

View file

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

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

View file

@ -2,5 +2,3 @@
mkdir out 2>/dev/null || true
deno run ./default.ts > out/default.conf
deno run ./relay.ts > out/relay.conf
deno run ./jetstream.ts > out/jetstream.conf

View file

@ -1,27 +0,0 @@
import ngx from "jsr:@char/ngx@0.2";
export const config = ngx("", [
ngx("map $http_upgrade $connection_upgrade", [
"default upgrade",
"'' close"
]),
[],
ngx("server", [
[
ngx.serverName("jetstream.cerulea.blue"),
ngx.listen(),
ngx.letsEncrypt("jetstream.cerulea.blue"),
],
ngx("location /", [
"client_max_body_size 100M",
"proxy_pass http://127.0.0.1:6008",
"proxy_http_version 1.1",
"proxy_set_header Upgrade $http_upgrade",
"proxy_set_header Connection $connection_upgrade",
"proxy_set_header Host $host",
"proxy_read_timeout 300s",
]),
]),
]);
if (import.meta.main) console.log(config.build());

View file

@ -1,27 +0,0 @@
import ngx from "jsr:@char/ngx@0.2";
export const config = ngx("", [
ngx("map $http_upgrade $connection_upgrade", [
"default upgrade",
"'' close"
]),
[],
ngx("server", [
[
ngx.serverName("relay.cerulea.blue"),
ngx.listen(),
ngx.letsEncrypt("relay.cerulea.blue"),
],
ngx("location /", [
"client_max_body_size 1G",
"proxy_pass http://127.0.0.1:3000",
"proxy_http_version 1.1",
"proxy_set_header Upgrade $http_upgrade",
"proxy_set_header Connection $connection_upgrade",
"proxy_set_header Host $host",
"proxy_read_timeout 300s",
]),
]),
]);
if (import.meta.main) console.log(config.build());