Temporarily shorten auth rate-limit window to 10s for prod testing.
CI / backend (push) Canceled after 1m44s
CI / frontend (push) Canceled after 1m52s

This commit is contained in:
2026-10-04 18:29:15 +08:00
parent 4fb9c95dfb
commit d013dd4bb5
2 changed files with 31 additions and 2 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ try
options.RejectionStatusCode = StatusCodes.Status429TooManyRequests;
options.AddFixedWindowLimiter("auth", opt =>
{
opt.Window = TimeSpan.FromMinutes(5);
opt.Window = TimeSpan.FromSeconds(10);
opt.PermitLimit = 10;
opt.QueueProcessingOrder = QueueProcessingOrder.OldestFirst;
opt.QueueLimit = 0;
+30 -1
View File
@@ -2,5 +2,34 @@
ssh vectur45@35.201.217.185 "sudo mkdir -p /opt/<project-name> && sudo chown -R vectur45:vectur45 /opt/<project-name> && sudo chmod 755 /opt/<project-name>"
ssh vectur45@35.201.217.185 "sudo rm /opt/<project-name>/.env"
2. Copy .env to folder
scp -i ~/.ssh/vectur45 .env vectur45@35.201.217.185:/opt/<project-name>/.env
scp -i ~/.ssh/vectur45 .env vectur45@35.201.217.185:/opt/<project-name>/.env
ssh -i ~/.ssh/vectur45 vectur45@35.201.217.185
postgresql://admin:PartyHard753!@postgres:5432/line_booking_liff
docker run --rm -it \
--network shared-services \
-e DATABASE_URL \
-v "$PWD:/app" -w /app \
node:22-bookworm \
bash -lc 'npm ci --omit=dev && npx prisma generate && npm run bootstrap-platform-key'
How to create platform key.
ssh -L 15432:127.0.0.1:5433 vectur45@35.201.217.185
DATABASE_URL='postgresql://admin:PartyHard753!@127.0.0.1:15432/line_booking_liff' \
npm run bootstrap-platform-key
lbl_live_9cb97cbe6b1f1623f6a2f7c59a81675603c70e2c7376b52e19b5d011fd184c8a
https://liff.lineapp.vectur45.com/c/vectur-45-sports
curl -sS -X POST "http://127.0.0.1:3011/api/v1/clients/a7bfe275-52f2-42df-9ce8-f99cd21228de/liff-config/publish" \
-H "Authorization: Bearer lbl_live_9cb97cbe6b1f1623f6a2f7c59a81675603c70e2c7376b52e19b5d011fd184c8a" | jq .