-32
README.md
-32
README.md
···
1
-
## Configuration
2
-
3
-
Run `npx @skyware/labeler setup` to convert an existing account into a labeler.
4
-
5
-
Create a `.env` file:
6
-
7
-
```Dotenv
8
-
DID = "did:plc:xxx"
9
-
SIGNING_KEY = "xxx"
10
-
```
11
-
12
-
A `cursor.txt` also needs to be present. It can be left empty, and will update the file every minute with a new cursor.
13
-
14
-
Create labels with `npx @skyware/labeler label add` and edit `src/constants.ts` with the related post rkeys and label IDs.
15
-
16
-
The server has to be reachable outside your local network using the URL you provided during the account setup (typically, using a reverse proxy such as [Caddy](https://caddyserver.com/)):
17
-
18
-
```Caddyfile
19
-
labeler.example.com {
20
-
reverse_proxy 127.0.0.1:4001
21
-
}
22
-
```
23
-
24
-
## Installation & Usage
25
-
26
-
```sh
27
-
npm i
28
-
```
29
-
30
-
```sh
31
-
npm start
32
-
```