keys
All checks were successful
Deploy / build (push) Successful in 47s

This commit is contained in:
Никита Круглицкий 2025-10-05 18:23:39 +06:00
parent 3c41b7d9a1
commit 4c8aebddf6
2 changed files with 7 additions and 4 deletions

View File

@ -4,14 +4,17 @@ RUN corepack enable
COPY package.json yarn.lock ./
RUN yarn install
COPY . .
ENV BSPB_MERCHANT_ID=TT00001
ENV BSPB_MERCHANT_PASSWORD=zTGRe1OBZg3
ENV BSPB_API_URL=https://pgtest.bspb.ru:5443
RUN yarn build
FROM node:22-alpine
WORKDIR /app
COPY --from=build /app/.output/ ./
ENV PORT=80
ENV BSPB_MERCHANT_ID=TT00001
ENV BSPB_MERCHANT_PASSWORD=ztTGre1OBZg3
ENV BSPB_API_URL=https://pgtest.bspb.ru:5443
EXPOSE 80
CMD ["node", "/app/server/index.mjs"]

View File

@ -32,7 +32,7 @@ export default defineEventHandler(async () => {
httpsAgent: agent,
headers: {
'Content-Type': 'application/json',
'Authorization': `Basic ${Buffer.from(`${merchantId}:${merchantPassword}`).toString('base64')}`,
'Authorization': `Basic ${Buffer.from(`TerminalSys/${merchantId}:${merchantPassword}`).toString('base64')}`,
},
})