update README

This commit is contained in:
Gervasio Marchand 2022-12-04 18:19:25 -03:00
parent 4266901008
commit 0ca3dea9f6
No known key found for this signature in database
GPG Key ID: B7736CB188DD0A38

View File

@ -81,6 +81,17 @@ The first time you run this it needs to create a key, you can trigger that using
docker-compose run --rm cli config {relayHost}
```
If you want requests to the homepage to redirect visitors somewhere, you can add a `"HomeRedirect"` entry on the generated `config.json`. The file would look like this:
```
{
"PublicKey": "-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----",
"PrivateKey": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----",
"Host": "fakerelay.gervas.io",
"HomeRedirect": "https://github.com/g3rv4/FakeRelay/"
}
```
### List authorized hosts
```
g3rv4@s1:~/docker/FakeRelay$ docker-compose run --rm cli list-instances