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
+27-9Lines changed: 27 additions & 9 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,31 +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
49
-
### Docker compose
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
50
63
51
-
Run all of the services required to run the application locally including the the database, STAC API, and Mock OICD provider using Docker compose.
64
+
Run the application stack with a pgSTAC backend using [stac-fastapi-pgstac](https://github.com/stac-utils/stac-fastapi-pgstac):
52
65
53
-
Spin up the application stack with the pgSTAC backend using [stac-fastapi-pgstac](https://github.com/stac-utils/stac-fastapi-pgstac):
54
66
```sh
55
-
UPSTREAM_URL=http://stac-pg:8001 docker compose --profile pg up
67
+
docker compose up
56
68
```
57
69
58
-
and with the OpenSearch backend using [stac-fastapi-elasticsearch-opensearch](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch):
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
+
59
74
```sh
60
-
UPSTREAM_URL=http://stac-os:8001 docker compose --profile os up
75
+
docker compose --profile os up
61
76
```
62
77
63
-
64
78
### Installation
65
79
66
80
For local development, we use [`uv`](https://docs.astral.sh/uv/) to manage project dependencies and environment.
@@ -83,6 +97,7 @@ pip install -e .
83
97
The application is configurable via environment variables.
84
98
85
99
#### Core
100
+
86
101
-**`UPSTREAM_URL`**, STAC API URL
87
102
-**Type:** HTTP(S) URL
88
103
-**Required:** Yes
@@ -114,6 +129,7 @@ The application is configurable via environment variables.
114
129
-**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