Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/settings.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@


### Application Extension

The default `stac-fastapi-pgstac` application comes will **all** extensions enabled (except transaction). Users can use `ENABLED_EXTENSIONS` environment variable to limit the supported extensions.
Expand All @@ -16,7 +15,6 @@ Available values for `ENABLED_EXTENSIONS`:

Example: `ENABLED_EXTENSIONS="pagination,sort"`


Since `6.0.0`, the transaction extension is not enabled by default. To add the transaction endpoints, users can set `ENABLE_TRANSACTIONS_EXTENSIONS=TRUE/YES/1`.

### Database config
Expand Down Expand Up @@ -60,5 +58,6 @@ In version `6.0.0` we've renamed the PG configuration variable to match the offi
- `ROOT_PATH`: set application root-path (when using proxy)
- `CORS_ORIGINS`: A list of origins that should be permitted to make cross-origin requests. Defaults to `*`
- `CORS_METHODS`: A list of HTTP methods that should be allowed for cross-origin requests. Defaults to `"GET,POST,OPTIONS"`
- `CORS_CREDENTIALS`: Set to `true` to enable credentials via CORS requests. Note that you'll need to set `CORS_ORIGINS` to something other than `*`, because credentials are [disallowed](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS/Errors/CORSNotSupportingCredentials) for wildcard CORS origins.
- `USE_API_HYDRATE`: perform hydration of stac items within stac-fastapi
- `INVALID_ID_CHARS`: list of characters that are not allowed in item or collection ids (used in Transaction endpoints)
1 change: 1 addition & 0 deletions stac_fastapi/pgstac/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ async def lifespan(app: FastAPI):
CORSMiddleware,
allow_origins=settings.cors_origins,
allow_methods=settings.cors_methods,
allow_credentials=settings.cors_credentials,
),
],
health_check=health_check,
Expand Down
1 change: 1 addition & 0 deletions stac_fastapi/pgstac/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ class Settings(ApiSettings):

cors_origins: str = "*"
cors_methods: str = "GET,POST,OPTIONS"
cors_credentials: bool = False

testing: bool = False

Expand Down
Loading