Skip to content

Commit 03b98ff

Browse files
authored
Merge pull request #64 from PentabyteDevAlign/config/dns
feat: configure HTTPS for devalign.site domain
2 parents e82d692 + 226e825 commit 03b98ff

8 files changed

Lines changed: 1923 additions & 2 deletions

Backend/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ const corsOptions = {
3333
origin: [
3434
"http://localhost:5173", // Local development frontend
3535
"http://localhost:3000", // Alternative local port
36-
"http://18.141.166.14", // Frontend EC2 instance
36+
"http://18.141.166.14", // Frontend EC2 instance (HTTP)
37+
"https://devalign.site", // Frontend production (HTTPS)
38+
"https://www.devalign.site", // Frontend production www (HTTPS)
3739
"http://13.250.231.18:5000" // Backend EC2 instance
3840
],
3941
credentials: true,
@@ -53,6 +55,8 @@ const io = new Server(server, {
5355
"http://localhost:5173",
5456
"http://localhost:3000",
5557
"http://18.141.166.14",
58+
"https://devalign.site",
59+
"https://www.devalign.site",
5660
"http://13.250.231.18:5000"
5761
],
5862
methods: ["GET", "POST", "PUT", "DELETE", "PATCH"],

Frontend/.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
VITE_API_URL=http://13.250.231.18:5000
2-
VITE_AI_URL=http://13.250.231.18:8000
2+
VITE_AI_URL=http://13.250.231.18:8000

0 commit comments

Comments
 (0)