You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-2Lines changed: 35 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@
8
8
STAC Auth Proxy is a proxy API that mediates between the client and your internally accessible STAC API to provide flexible authentication, authorization, and content-filtering mechanisms.
9
9
10
10
> [!IMPORTANT]
11
+
>
11
12
> **We would :heart: to hear from you!**
12
13
> Please [join the discussion](https://github.com/developmentseed/eoAPI/discussions/209) and let us know how you're using eoAPI! This helps us improve the project for you and others.
13
14
> If you prefer to remain anonymous, you can email us at [email protected], and we'll be happy to post a summary on your behalf.
@@ -25,7 +26,9 @@ STAC Auth Proxy is a proxy API that mediates between the client and your interna
25
26
26
27
### Running
27
28
28
-
The simplest way to run the project is by invoking the application via Docker:
29
+
#### Docker
30
+
31
+
The simplest way to run the project is via Docker:
29
32
30
33
```sh
31
34
docker run \
@@ -36,16 +39,42 @@ docker run \
36
39
ghcr.io/developmentseed/stac-auth-proxy:latest
37
40
```
38
41
39
-
Alternatively, the module can be invoked directly or the application's factory can be passed to Uvicorn:
42
+
#### Python
43
+
44
+
The installed Python module can be invoked directly:
40
45
41
46
```sh
42
47
python -m stac_auth_proxy
43
48
```
44
49
50
+
#### Uvicorn
51
+
52
+
The application's factory can be passed to Uvicorn:
53
+
45
54
```sh
46
55
uvicorn --factory stac_auth_proxy:create_app
47
56
```
48
57
58
+
#### Docker Compose
59
+
60
+
The codebase ships with a `docker-compose.yaml` file, allowing the proxy to be run locally alongside various supporting services: the database, the STAC API, and a Mock OIDC provider.
61
+
62
+
##### pgSTAC Backend
63
+
64
+
Run the application stack with a pgSTAC backend using [stac-fastapi-pgstac](https://github.com/stac-utils/stac-fastapi-pgstac):
65
+
66
+
```sh
67
+
docker compose up
68
+
```
69
+
70
+
##### OpenSearch Backend
71
+
72
+
Run the application stack with an OpenSearch backend using [stac-fastapi-elasticsearch-opensearch](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch):
73
+
74
+
```sh
75
+
docker compose --profile os up
76
+
```
77
+
49
78
### Installation
50
79
51
80
The application can be installed as a standard Python module:
@@ -65,6 +94,7 @@ uv sync
65
94
The application is configurable via environment variables.
66
95
67
96
#### Core
97
+
68
98
-**`UPSTREAM_URL`**, STAC API URL
69
99
-**Type:** HTTP(S) URL
70
100
-**Required:** Yes
@@ -96,6 +126,7 @@ The application is configurable via environment variables.
96
126
-**Note:** This is independent of the upstream API's path. The proxy will handle removing this prefix from incoming requests and adding it to outgoing links.
0 commit comments