Skip to content

Commit d17da8b

Browse files
committed
feat: frontend url changed
1 parent f1c2b4b commit d17da8b

6 files changed

Lines changed: 28 additions & 13 deletions

File tree

auth-service/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { runConsumer, stopConsumer } from "./__boot/consumer";
99
await Promise.all([connectDB(), runConsumer()])
1010
// TODO: disconnected the consumer reconnect it when needed
1111
.then(() => {
12-
console.log("kafka consumer is running")
12+
console.log("kafka consumer is runnings")
1313
})
1414
.catch((error) => {
1515
console.error(`Error while initializing Kafka consumer: ${error}`);

chat-service/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { runConsumer, stopConsumer } from "./__boot/consumer";
99
await Promise.all([connectDB(), runConsumer()])
1010
// TODO: disconnected the consumer reconnect it when needed
1111
.then(() => {
12-
console.log("kafka consumer is running")
12+
console.log("kafka consumer is runnings")
1313
})
1414
.catch((error:any) => {
1515
console.error(`Error while initializing Kafka consumer: ${error}`);

course-srv/src/presentation/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ app.use(express.urlencoded({extended:true}));
2121
app.use(cookieParser());
2222
// app.use(bodyParser.text({type: '/'}));
2323
app.use(cors({
24-
origin: 'http://localhost:5173', // Your frontend URL
24+
origin: 'https://welearning.online',
2525
credentials: true,
2626
allowedHeaders: ['Range', 'Authorization', 'Content-Type','Accept'],
2727
exposedHeaders: ['Content-Disposition','Content-Range', 'Accept-Ranges', 'Content-Length', 'Content-Type'],

manifest/ingress-controller.yaml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,40 @@ metadata:
88
nginx.ingress.kubernetes.io/enable-cors: "true"
99
nginx.ingress.kubernetes.io/cors-allow-origin: "v-learning-client-5r8j.vercel.app" # 🔧 Change to your actual frontend domain
1010
nginx.ingress.kubernetes.io/enable-access-log: "true"
11-
nginx.ingress.kubernetes.io/websocket-services: "vlearning-chat-service" # ✅ Ensure this matches your chat service name
11+
nginx.ingress.kubernetes.io/websocket-services: "chat-service" # ✅ Ensure this matches your chat service name
1212
spec:
1313
ingressClassName: webapprouting.kubernetes.azure.com # 🔧 Change if not using Azure or a different ingress class
1414
rules:
15-
- host: vlearning.live # 🔧 Change to your actual domain
15+
- host: welearning.online
1616
http:
1717
paths:
18-
- path: /auth
19-
pathType: Prefix
18+
- path: /auth/multipart(/|$)(.*)
19+
pathType: ImplementationSpecific
2020
backend:
2121
service:
22-
name: vlearning-auth-service # ✅ Make sure service name matches your K8s service
22+
name: vlearning-auth-service
2323
port:
2424
number: 3001
25-
- path: /course
26-
pathType: Prefix
25+
- path: /auth(/|$)(.*)
26+
pathType: ImplementationSpecific
27+
backend:
28+
service:
29+
name: vlearning-auth-service
30+
port:
31+
number: 3001
32+
- path: /course/multipart(/|$)(.*)
33+
pathType: ImplementationSpecific
34+
backend:
35+
service:
36+
name: vlearning-course-srv
37+
port:
38+
number: 3003
39+
40+
- path: /course(/|$)(.*)
41+
pathType: ImplementationSpecific
2742
backend:
2843
service:
29-
name: vlearning-course-srv # ✅ Confirm this matches your course service name
44+
name: vlearning-course-srv
3045
port:
3146
number: 3003
3247
- path: /notification

notification-service/src/presentation/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ app.use(cookieParser());
1515

1616
app.get("/",(req:Request, res:Response) => {
1717
res.status(200).json({
18-
message:"Notification service is ON!!!!"
18+
message:"Notification service is ON!!!!!"
1919
})
2020
})
2121

payment-srv/src/presentation/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ app.get("/",(req:Request, res:Response) => {
3333
app.use(routes(dependencies))
3434

3535
app.listen(PORT,() => {
36-
console.log(`connected to Payment services at http://localhost:${PORT}`);
36+
console.log(`connected to Payment services ats http://localhost:${PORT}s`);
3737
})
3838

3939
export default app;

0 commit comments

Comments
 (0)