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 ./ COPY package.json yarn.lock ./
RUN yarn install RUN yarn install
COPY . . COPY . .
ENV BSPB_MERCHANT_ID=TT00001
ENV BSPB_MERCHANT_PASSWORD=zTGRe1OBZg3
ENV BSPB_API_URL=https://pgtest.bspb.ru:5443
RUN yarn build RUN yarn build
FROM node:22-alpine FROM node:22-alpine
WORKDIR /app WORKDIR /app
COPY --from=build /app/.output/ ./ COPY --from=build /app/.output/ ./
ENV PORT=80 ENV PORT=80
ENV BSPB_MERCHANT_ID=TT00001
ENV BSPB_MERCHANT_PASSWORD=ztTGre1OBZg3
ENV BSPB_API_URL=https://pgtest.bspb.ru:5443
EXPOSE 80 EXPOSE 80
CMD ["node", "/app/server/index.mjs"] CMD ["node", "/app/server/index.mjs"]

View File

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