This commit is contained in:
parent
3c41b7d9a1
commit
4c8aebddf6
@ -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"]
|
||||||
|
|||||||
@ -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')}`,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user