-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into implemented-ci-cd
- Loading branch information
Showing
19 changed files
with
234 additions
and
221 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,5 @@ example-local | |
coverage/ | ||
ngrok.yml | ||
src/test.ts | ||
.env.* | ||
.env.* | ||
.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Run your own Attestor | ||
|
||
## Running a Attestor Locally | ||
|
||
1. Of course, clone this repository. | ||
2. Ensure you have an env file with at least the `PRIVATE_KEY` set. See the [.env.sample](.env.sample) file to see all available options. | ||
3. Optional: build the browser RPC files with `npm run build:browser`. More on this in the [docs](docs/browser-rpc.md). | ||
4. Run the attestor server with `npm run start:tsc`. This will start the server on port 8001 by default. | ||
|
||
## Deploying to the Cloud | ||
|
||
You can deploy your own Reclaim server via the [docker-compose](/docker-compose.yaml). The Reclaim server is a stateless machine so you can scale it horizontally as much as you want. | ||
|
||
With the docker compose up: | ||
- Expose the Reclaim HTTP server behind a reverse proxy (like nginx) to the internet. | ||
- Add HTTPS to the reverse proxy to ensure secure communication. | ||
- Since Reclaim uses a websocket, ensure that the reverse proxy is configured to handle websockets. | ||
|
||
Your final RPC URL should look something like `wss://<your-domain>/ws`. To use your server on a mobile device via browser RPC, you can load the page at: `https://<your-domain>/browser-rpc`. |
Oops, something went wrong.