Self-hosted PLC mirror
 
 
Go to file
Max Ignatenko 9b877c1524 Remove everything that's not needed for PLC mirror 2024-09-25 22:04:13 +01:00
cmd/plc-mirror Remove everything that's not needed for PLC mirror 2024-09-25 22:04:13 +01:00
models Import 2024-02-15 16:10:39 +00:00
util Add code missing in the previous commit 2024-04-13 18:37:26 +01:00
.dockerignore feature: skip unnecessary recompilation in some cases 2024-09-07 11:47:15 +01:00
.gitignore Add ignore to override. 2024-02-23 09:26:11 -08:00
LICENSE Add license 2024-04-13 20:41:56 +01:00
Makefile Remove everything that's not needed for PLC mirror 2024-09-25 22:04:13 +01:00
README.md Remove everything that's not needed for PLC mirror 2024-09-25 22:04:13 +01:00
docker-compose.yml Remove everything that's not needed for PLC mirror 2024-09-25 22:04:13 +01:00
example.env Remove everything that's not needed for PLC mirror 2024-09-25 22:04:13 +01:00
go.mod Add exponential backoff to firehose connection attempts and export connection status directly 2024-05-21 11:43:35 +01:00
go.sum Add exponential backoff to firehose connection attempts and export connection status directly 2024-05-21 11:43:35 +01:00

README.md

PLC mirror

Syncs PLC operations log into a local table, and allows resolving did:plc: DIDs without putting strain on https://plc.directory and hitting rate limits.

Setup

  • Decide where do you want to store the data
  • Copy example.env to .env and edit it to your liking.
    • POSTGRES_PASSWORD can be anything, it will be used on the first start of postgres container to initialize the database.
  • make up

Usage

You can directly replace https://plc.directory with a URL to the exposed port (11004 by default).

Note that on the first run it will take quite a few hours to download everything, and the mirror with respond with 500 if it's not caught up yet.