Skip to content

Commit 461cc10

Browse files
authored
Slight rework of service env configuration
1 parent e0b5897 commit 461cc10

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lib/stac-auth-proxy/index.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,16 @@ export class StacAuthProxyLambdaRuntime extends Construct {
3434
// stac-auth-proxy config
3535
UPSTREAM_URL: props.upstreamUrl,
3636
OIDC_DISCOVERY_URL: props.oidcDiscoveryUrl,
37-
DEFAULT_PUBLIC: "false",
38-
OPENAPI_SPEC_ENDPOINT: "/api",
37+
3938
// swagger-ui config
39+
OPENAPI_SPEC_ENDPOINT: "/api",
4040
SWAGGER_UI_ENDPOINT: "/api.html",
41-
SWAGGER_UI_INIT_OAUTH: JSON.stringify({
41+
SWAGGER_UI_INIT_OAUTH: props.stacApiClientId && JSON.stringify({
4242
clientId: props.stacApiClientId,
4343
usePkceWithAuthorizationCodeGrant: true,
4444
}),
45+
46+
// customized settings
4547
...props.apiEnv,
4648
},
4749
// overwrites defaults with user-provided configurable properties
@@ -77,7 +79,8 @@ export interface StacAuthProxyLambdaRuntimeProps {
7779
readonly subnetSelection?: ec2.SubnetSelection;
7880

7981
/**
80-
* Customized environment variables to send to fastapi-pgstac runtime.
82+
* Customized environment variables to send to stac-auth-proxy runtime.
83+
* https://github.com/developmentseed/stac-auth-proxy/?tab=readme-ov-file#configuration
8184
*/
8285
readonly apiEnv?: Record<string, string>;
8386

0 commit comments

Comments
 (0)