Skip to content

Commit

Permalink
Merge pull request #344 from desci-labs/dpid-url-override
Browse files Browse the repository at this point in the history
DPID url config
  • Loading branch information
shadrach-tayo authored May 27, 2024
2 parents 684187c + eca433c commit 5b4428a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions desci-server/kubernetes/deployment_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ spec:
export SESSION_KEY={{ .Data.SESSION_KEY }}
export COOKIE_DOMAIN={{ .Data.COOKIE_DOMAIN }}
export ORCID_API_DOMAIN={{ .Data.ORCID_API_DOMAIN }}
export DPID_URL_OVERRIDE={{ .Data.DPID_URL_OVERRIDE }}
export ORCID_CLIENT_ID={{ .Data.ORCID_CLIENT_ID }}
export ORCID_CLIENT_SECRET={{ .Data.ORCID_CLIENT_SECRET }}
export ARWEAVE_ENABLED=0
Expand Down
1 change: 1 addition & 0 deletions desci-server/kubernetes/deployment_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ spec:
export ORCID_API_DOMAIN={{ .Data.ORCID_API_DOMAIN }}
export ORCID_CLIENT_ID={{ .Data.ORCID_CLIENT_ID }}
export ORCID_CLIENT_SECRET={{ .Data.ORCID_CLIENT_SECRET }}
export DPID_URL_OVERRIDE={{ .Data.DPID_URL_OVERRIDE }}
export ARWEAVE_ENABLED=0
export ARWEAVE_HOST=
export ARWEAVE_PORT=1984
Expand Down
1 change: 1 addition & 0 deletions desci-server/kubernetes/deployment_staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ spec:
export ORCID_API_DOMAIN={{ .Data.ORCID_API_DOMAIN }}
export ORCID_CLIENT_ID={{ .Data.ORCID_CLIENT_ID }}
export ORCID_CLIENT_SECRET={{ .Data.ORCID_CLIENT_SECRET }}
export DPID_URL_OVERRIDE={{ .Data.DPID_URL_OVERRIDE }}
export ARWEAVE_ENABLED=0
export ARWEAVE_HOST=
export ARWEAVE_PORT=1984
Expand Down
2 changes: 1 addition & 1 deletion desci-server/src/services/orcid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { getManifestByCid } from './data/processing.js';

// const PUTCODE_REGEX = /put-code=.*?(?<code>\d+)/m;

const DPID_URL_OVERRIDE = process.env.DPID_URL_OVERRIDE || 'https://dev-beta.dpid.org';
const DPID_URL_OVERRIDE = process.env.DPID_URL_OVERRIDE || 'https://beta.dpid.org';
const ORCID_DOMAIN = process.env.ORCID_API_DOMAIN || 'sandbox.orcid.org';
type Claim = Awaited<ReturnType<typeof attestationService.getProtectedNodeClaims>>[number];
const logger = parentLogger.child({ module: 'ORCIDApiService' });
Expand Down

0 comments on commit 5b4428a

Please sign in to comment.