File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments