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