Skip to content

Commit

Permalink
Merge pull request #2 from Escape-Technologies/docs/installation
Browse files Browse the repository at this point in the history
documentation
  • Loading branch information
QuentinN42 authored Aug 16, 2023
2 parents 6cd9940 + d6d2312 commit 83acf64
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
# Escape proxy

A simple proxy that can be used to allow escape to connect to some APIs.

## Requirements

To use this proxy, you need to have an [Escape](https://escape.tech) account.

Before installing the proxy make shure you have the following:

- `ESCAPE_ORGANIZATION_ID` : Your Escape organization id (can be found in [organization/settings](https://app.escape.tech/organization/settings/)).
- `ESCAPE_API_KEY` : The API key of your Escape account (can be found in [user/profile](https://app.escape.tech/user/profile/)).

## Install

You have multiple options to install the proxy:

- Docker image (covered in this tutorial)
- From source ([go to releases](https://github.com/Escape-Technologies/proxy/releases/latest))

You now need to run the proxy with the following environment variables:

- `ESCAPE_ORGANIZATION_ID`: Your organization id.
- `ESCAPE_API_KEY` : Your API key.
- `PORT` : The port on which the proxy will listen (default: `8080`).

```bash
docker run -it --rm --name escape-proxy \
-e ESCAPE_ORGANIZATION_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \
-e ESCAPE_API_KEY=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \
-p 8080:8080 escapetech/proxy
```

You can find in the example folder more deployment examples.
Feel free to contribute and add your own.

## Usage

You can now go to the escape documentation follow the steps to [use your custom proxy](https://docs.escape.tech/cookbooks/identifying-requests#using-a-custom-proxy).
10 changes: 10 additions & 0 deletions examples/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: "3.7"

services:
proxy:
image: escapetech/proxy
ports:
- 8080:8080
environment:
- ESCAPE_ORGANIZATION_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- ESCAPE_API_KEY=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

0 comments on commit 83acf64

Please sign in to comment.