-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
359 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ x-envs: | |
PG__PORT: ${PG_PORT:-5432} | ||
PG__IDLE_TIMEOUT_IN_MS: 1000 | ||
PG__DIALECT: postgresql | ||
PG__SSL: ${PG__SSL:-false} | ||
fhir: &x-fhir | ||
FHIR__CLIENT_ID: db6b2304-f236-45ec-b10c-a852681e7129 | ||
FHIR__CLIENT_SECRET: ${FHIR__CLIENT_SECRET} | ||
|
@@ -118,7 +119,7 @@ services: | |
data: | ||
priority: 10 | ||
volumes: | ||
- trex:/usr/src/plugin/node_modules | ||
- trex:/usr/src/data | ||
healthcheck: | ||
interval: 60s | ||
retries: 30 | ||
|
@@ -165,6 +166,7 @@ services: | |
"PG__DB_NAME": "alp", | ||
"PG__DEBUG": "${PG_DEBUG:-1}", | ||
"PG__HOST": "${PG_HOST:-${PROJECT_NAME:-d2e}-minerva-postgres-1}", | ||
"PG__SSL": "${PG__SSL:-false}", | ||
"PG__MAX_POOL": 10, | ||
"PG__MIN_POOL": 0, | ||
"PG__PORT": ${PG_PORT:-5432}, | ||
|
@@ -442,7 +444,8 @@ services: | |
"port": "${PG_PORT:-5432}", | ||
"query_timeout": 60000, | ||
"statement_timeout": 60000, | ||
"user": "${PG_SUPER_USER:-postgres}" | ||
"user": "${PG_SUPER_USER:-postgres}", | ||
"ssl": false | ||
} | ||
POSTGRES_MANAGE_CONFIG: |- | ||
{ | ||
|
@@ -680,6 +683,7 @@ services: | |
PG__PASSWORD: ${PG_SUPER_PASSWORD} | ||
PG__PORT: ${PG_PORT:-5432} | ||
PG__USER: ${PG__LOGTO_MANAGE_USER:-logto_postgres} | ||
PG__SSL: ${PG__SSL:-false} | ||
# LOGTO__CUSTOM_JWT: '{"script": "/**\n* This function is called during the access token generation process to get custom claims for the JWT token.\n* Limit custom claims to under 50KB.\n*\n* @param {Object} payload - The input payload of the function.\n* @param {AccessTokenPayload} payload.token -The JWT token.\n* @param {Context} payload.context - Logto internal data that can be used to pass additional information\n* @param {EnvironmentVariables} [payload.environmentVariables] - The environment variables.\n*\n* @returns The custom claims.\n*/\n\n// @ts-ignore\nconst getCustomJwtClaims = async ({ token, context, environmentVariables, extra }) => {\n return { ...extra };\n}", "tokenSample": {"aud": "http://localhost:3000/api/test", "gty": "authorization_code", "jti": "f1d3d2d1-1f2d-3d4e-5d6f-7d8a9d0e1d2", "kind": "AccessToken", "scope": "read write", "grantId": "grant_123", "clientId": "my_app", "accountId": "uid_123"}, "contextSample": {"user": {"id": "123", "name": "Foo Bar", "roles": [], "avatar": "https://example.com/avatar.png", "profile": {}, "username": "foo", "customData": {}, "identities": {}, "hasPassword": false, "primaryEmail": "[email protected]", "primaryPhone": "+1234567890", "applicationId": "my-app", "organizations": [], "ssoIdentities": [], "organizationRoles": [], "mfaVerificationFactors": []}}}' | ||
LOGTO__CLIENT_APPS: '[{"name":"alp-svc","description":"alp-svc","type":"MachineToMachine", "id": "${LOGTO__ALP_SVC__CLIENT_ID}", "secret": "${LOGTO__ALP_SVC__CLIENT_SECRET}"},{"name":"alp-data","description":"alp-data","type":"MachineToMachine", "id": "${LOGTO__ALP_DATA__CLIENT_ID}", "secret": "${LOGTO__ALP_DATA__CLIENT_SECRET}"},{"name":"alp-app","description":"alp-app","type":"Traditional", "id": "${LOGTO__ALP_APP__CLIENT_ID}", "secret": "${LOGTO__ALP_APP__CLIENT_SECRET}", "oidcClientMetadata":{"redirectUris":["https://${CADDY__ALP__PUBLIC_FQDN:-localhost}${PORT:+:${PORT:-443}}/portal/login-callback","https://localhost:4000/portal/login-callback","https://localhost:8081"],"postLogoutRedirectUris":["https://${CADDY__ALP__PUBLIC_FQDN:-localhost}${PORT:+:${PORT:-443}}/portal","https://localhost:4000/portal","https://localhost:8081"]},"customClientMetadata":{"corsAllowedOrigins":[],"refreshTokenTtlInDays":14,"alwaysIssueRefreshToken":true,"rotateRefreshToken":true}}]' | ||
LOGTO__RESOURCE: '{"name":"alp-default","indicator":"https://alp-default","accessTokenTtl":3600}' | ||
|
@@ -745,7 +749,8 @@ services: | |
|
||
alp-logto-seed: | ||
container_name: &c37 alp-logto-seed | ||
image: logto-schema-logto:latest | ||
image: ghcr.io/data2evidence/d2e-logto:${DOCKER_TAG_NAME:-develop} | ||
platform: linux/amd64 | ||
entrypoint: | ||
- sh | ||
- -c | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...p-db-credentials/src/common/data-source/migrations/1739349524222-create-db-publication.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { MigrationInterface, QueryRunner } from 'typeorm' | ||
|
||
export class CreateDbPublication1739349524222 implements MigrationInterface { | ||
name = 'CreateDbPublication1739349524222' | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`CREATE TABLE "db_credentials_mgr"."db_publication" ("id" SERIAL NOT NULL, "publication" character varying NOT NULL, "slot" character varying NOT NULL, "db_id" uuid NOT NULL, "created_by" character varying NOT NULL, "created_date" TIMESTAMP NOT NULL DEFAULT now(), "modified_by" character varying NOT NULL, "modified_date" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "UQ_2c00d40454a74a07284f53c3e41" UNIQUE ("publication", "db_id"), CONSTRAINT "PK_692b25da07a6fce963c98a1c445" PRIMARY KEY ("id"))` | ||
) | ||
await queryRunner.query( | ||
`ALTER TABLE "db_credentials_mgr"."db_publication" ADD CONSTRAINT "FK_90722678a5543b197d244e87fab" FOREIGN KEY ("db_id") REFERENCES "db_credentials_mgr"."db"("id") ON DELETE CASCADE ON UPDATE NO ACTION` | ||
) | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`ALTER TABLE "db_credentials_mgr"."db_publication" DROP CONSTRAINT "FK_90722678a5543b197d244e87fab"` | ||
) | ||
await queryRunner.query(`DROP TABLE "db_credentials_mgr"."db_publication"`) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.