tangled
alpha
login
or
join now
ligo.at
/
core
6
fork
atom
decentralized and customizable links page on top of atproto
ligo.at
atproto
link-in-bio
python
uv
6
fork
atom
overview
issues
2
pulls
pipelines
move ingestor to separate folder
nauta.one
4 months ago
88d3745d
f2f8c62b
+6
-5
3 changed files
expand all
collapse all
unified
split
Makefile
dist
ligoatingestor.service
ingestor
__main__.py
+3
-3
Makefile
···
9
9
run:
10
10
uv run -- dotenv run -- gunicorn
11
11
12
12
-
.PHONY: ingest
13
13
-
ingest:
14
14
-
uv run -- src/ingest.py
12
12
+
.PHONY: ingestor
13
13
+
ingestor:
14
14
+
uv run -- ingestor
+1
-1
dist/ligoatingestor.service
···
3
3
After = ligoat.service
4
4
5
5
[Service]
6
6
-
ExecStart = uv run -- src/ingest.py
6
6
+
ExecStart = uv run -- ingestor
7
7
Type = simple
8
8
Restart = always
9
9
RestartSec = 5s
+2
-1
src/ingest.py
ingestor/__main__.py
···
10
10
11
11
12
12
async def ingest_jetstream(config: dict[str, str | None]):
13
13
-
socket = f"wss://{config['JETSTREAM_URL']}/subscribe"
13
13
+
base = config.get("JETSTREAM_URL", "jetstream1.us-east.bsky.network")
14
14
+
socket = f"wss://{base}/subscribe"
14
15
socket += "?wantedCollections=at.ligo.*"
15
16
logger.info(f"connecting to {socket}")
16
17
async with aiohttp.ClientSession() as session: