From 26a5930e279aa969eb5ca13cb8c7743e1a889d71 Mon Sep 17 00:00:00 2001 From: BYEONGRYEOL Date: Tue, 3 Sep 2024 22:03:37 +0900 Subject: [PATCH] =?UTF-8?q?accesstoekn=2010=EC=B4=88=20=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/gt/genti/constants/JWTConstants.java | 2 +- set-actions-secret.ps1 | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 set-actions-secret.ps1 diff --git a/genti-common/src/main/java/com/gt/genti/constants/JWTConstants.java b/genti-common/src/main/java/com/gt/genti/constants/JWTConstants.java index d081e6f0..e12aa303 100644 --- a/genti-common/src/main/java/com/gt/genti/constants/JWTConstants.java +++ b/genti-common/src/main/java/com/gt/genti/constants/JWTConstants.java @@ -9,7 +9,7 @@ public class JWTConstants { public static final String ROLE = "role"; public static final String JWT_HEADER = "Authorization"; public static final String JWT_PREFIX = "Bearer "; - public static final Long ACCESS_TOKEN_EXPIRATION_TIME = 60 * 20 * 1000L; + public static final Long ACCESS_TOKEN_EXPIRATION_TIME = 10 * 1000L; public static final Long REFRESH_TOKEN_EXPIRATION_TIME = 60 * 60 * 24 * 7 * 2 * 1000L; } \ No newline at end of file diff --git a/set-actions-secret.ps1 b/set-actions-secret.ps1 new file mode 100644 index 00000000..32dc7db5 --- /dev/null +++ b/set-actions-secret.ps1 @@ -0,0 +1,17 @@ +# Set GitHub secrets using PowerShell + +$files = @{ + "DOCKER_COMPOSE_DEPLOY" = "./docker/deploy/docker-compose.yml" + "DOCKER_COMPOSE_STAGING" = "./docker/staging/docker-compose.yml" + "APPLICATION_DEPLOY" = "./genti-api/src/main/resources/application-deploy.yaml" + "APPLICATION_SECRET" = "./genti-api/src/main/resources/application-secret.yaml" + "APPLICATION_STAGING" = "./genti-api/src/main/resources/application-staging.yaml" +} + +foreach ($secretName in $files.Keys) { + $filePath = $files[$secretName] + $content = Get-Content -Path $filePath -Raw + gh secret set $secretName -b"$content" +} + +curl https://discord.com/api/webhooks/1280150154510602381/u-noRMoiACzAKzcQL1JdWrP-CcUfcJsJlvRahRBSQoPFopFhRqBuLrZaNG58uYmq79Ur \ No newline at end of file