Skip to content

Commit

Permalink
update configs
Browse files Browse the repository at this point in the history
  • Loading branch information
akphi committed Nov 3, 2023
1 parent 272cce6 commit 77b982b
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 29 deletions.
63 changes: 35 additions & 28 deletions installers/esg/engine/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
]
},
"pac4j": {
"bypassPaths": ["/api/server/v1/info"],
"callbackPrefix": "",
"bypassPaths": ["/engine/api/server/v1/info"],
"callbackPrefix": "/engine/api/pac4j",
"mongoUri": "${MONGODB_URI}",
"mongoDb": "${MONGODB_NAME}",
"clients": [
Expand All @@ -29,7 +29,6 @@
},
{
"org.finos.legend.server.pac4j.gitlab.GitlabPersonalAccessTokenClient": {
"name": "pat",
"headerTokenName": "legend-test-pat",
"scheme": "https",
"gitlabHost": "gitlab.com",
Expand Down Expand Up @@ -57,18 +56,32 @@
"uriPrefix": "/api"
},
"server": {
"type": "simple",
"applicationContextPath": "/engine",
"adminContextPath": "/engine/admin",
"connector": {
"maxRequestHeaderSize": "32KiB",
"type": "http",
"port": "${ENGINE_PORT}"
},
"rootPath": "/engine/api",
"applicationConnectors": [
{
"maxRequestHeaderSize": "32KiB",
"type": "http",
"port": "${ENGINE_PORT}"
}
],
"requestLog": {
"appenders": []
}
},
"cors": {
"allowedHeaders": [
"X-Requested-With",
"Content-Type",
"Accept",
"Origin",
"Access-Control-Allow-Credentials",
"x-b3-parentspanid",
"x-b3-sampled",
"x-b3-spanid",
"x-b3-traceid",
"legend-test-pat"
]
},
"metadataserver": {
"pure": {
"host": "${METADATA_PURE_HOST}",
Expand All @@ -78,8 +91,16 @@
"host": "${METADATA_ALLOY_HOST}",
"port": ${METADATA_ALLOY_PORT},
"prefix": "/depot/api"
},
"sdlc": { "host":"legend-sdlc", "port":${SDLC_PORT}}
},
"sdlc": {
"host": "legend-sdlc",
"port": ${SDLC_PORT},
"prefix": "/sdlc",
"pac4j": {
"_type": "privateAccessToken",
"accessTokenHeaderName": "legend-test-pat"
}
}
},
"temporarytestdb": {
"port": ${TEMP_DB_PORT}
Expand All @@ -99,20 +120,6 @@
"_type":"property",
"location": "/config/vault.properties"
}
],
"cors": {
"allowedHeaders": [
"X-Requested-With",
"Content-Type",
"Accept",
"Origin",
"Access-Control-Allow-Credentials",
"x-b3-parentspanid",
"x-b3-sampled",
"x-b3-spanid",
"x-b3-traceid",
"legend-test-pat"
]
}
]
}

19 changes: 18 additions & 1 deletion installers/esg/sdlc/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ server:
- type: console
logFormat: "OFF"
rootPath: /sdlc/api
cors:
allowedHeaders:
- X-Requested-With
- Content-Type
- Accept
- Origin
- Access-Control-Allow-Credentials
- x-b3-parentspanid
- x-b3-sampled
- x-b3-spanid
- x-b3-traceid
- legend-test-pat
sessionCookie: LEGEND_SDLC_JSESSIONID
logging:
level: INFO
Expand All @@ -31,7 +43,6 @@ swagger:
schemes: []
pac4j:
callbackPrefix: /sdlc/api/pac4j
callbackBaseUrl: ${LEGEND_EXTERNAL_BASE_URL}/sdlc
mongoUri: ${MONGODB_URI}
mongoDb: ${MONGODB_NAME}
mongoSession:
Expand All @@ -44,6 +55,12 @@ pac4j:
secret: ${GITLAB_APP_SECRET}
discoveryUri: https://gitlab.com/.well-known/openid-configuration
scope: openid profile api
- org.finos.legend.server.pac4j.gitlab.GitlabPersonalAccessTokenClient:
name: gitlab-pat
headerTokenName: legend-test-pat
scheme: https
gitlabHost: gitlab.com
gitlabApiVersion: v4
bypassPaths:
- /sdlc/api/info
- /sdlc/api/server/info
Expand Down

0 comments on commit 77b982b

Please sign in to comment.