Skip to content

Commit

Permalink
Merge pull request #1 from credebl/devops
Browse files Browse the repository at this point in the history
Added docker file and done changes in frontend url
  • Loading branch information
tipusinghaw authored Aug 21, 2023
2 parents 79f8ea8 + 1984d34 commit 466586f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:16-alpine
#RUN kill -9 sudo lsof -t -i:8000
WORKDIR /app
COPY package.json ./
RUN rm -rf node_moduls
RUN npm i
COPY . .
RUN npm cache clean --force
CMD [ "npm", "start" ]

# docker build -t webauthn .
# docker tag docker.io/library/webauthn docker tag docker.io/library/webauthn 668004263903.dkr.ecr.ap-south-1.amazonaws.com/credebl2.0:webauthn
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ dotenv.config();
const app = express();
const MemoryStore = memoryStore(session);

const { ENABLE_CONFORMANCE, ENABLE_HTTPS, RP_ID = 'localhost' } = process.env;
const { ENABLE_CONFORMANCE, ENABLE_HTTPS, RP_ID = 'dev.credebl.id' } = process.env;
app.use(cors());
app.use(express.static('./public/'));
app.use(express.json());
Expand Down Expand Up @@ -82,7 +82,7 @@ export const rpID = RP_ID;
// This value is set at the bottom of page as part of server initialization (the empty string is
// to appease TypeScript until we determine the expected origin based on whether or not HTTPS
// support is enabled)
export const expectedOrigin = 'http://localhost:3000';
export const expectedOrigin = 'https://dev.credebl.id';

/**
* 2FA and Passwordless WebAuthn flows expect you to be able to uniquely identify the user that
Expand Down

0 comments on commit 466586f

Please sign in to comment.