Skip to content

Commit

Permalink
use pkey pair in production
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordfirespeed committed Oct 27, 2024
1 parent 64d31f7 commit 5843006
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions server/config/production.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { TokenType } from "@durhack/token-vault/lib"

import type { DeepPartial } from "@server/types/deep-partial"
import type { ConfigIn } from "@server/config/schema"

Expand Down Expand Up @@ -29,6 +31,14 @@ export default {
jsonwebtoken: {
issuer: "https://megateams.durhack.com",
audience: "https://megateams.durhack.com",
authorities: [
{
for: TokenType.accessToken,
algorithm: "eddsa",
publicKeyFilePath: "keys/accessToken.pub",
privateKeyFilePath: "keys/accessToken.key",
}
],
},
keycloak: {
realm: "durhack",
Expand Down

0 comments on commit 5843006

Please sign in to comment.