Skip to content

Commit f7f3511

Browse files
committed
Update httproute.yaml
1 parent 1868a7c commit f7f3511

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

my-apps/privacy/sticktock/httproute.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ spec:
1616
hostnames:
1717
- sticktock.vanillax.me
1818
rules:
19+
# Route API requests to backend (with URL rewrite to remove /api prefix)
1920
- matches:
2021
- path:
2122
type: PathPrefix
@@ -30,6 +31,50 @@ spec:
3031
- kind: Service
3132
name: sticktock-backend-service
3233
port: 2000
34+
35+
# Route static assets to backend (videos, thumbnails, authors, audio, images)
36+
- matches:
37+
- path:
38+
type: PathPrefix
39+
value: /videos/
40+
backendRefs:
41+
- kind: Service
42+
name: sticktock-backend-service
43+
port: 2000
44+
- matches:
45+
- path:
46+
type: PathPrefix
47+
value: /thumbnails/
48+
backendRefs:
49+
- kind: Service
50+
name: sticktock-backend-service
51+
port: 2000
52+
- matches:
53+
- path:
54+
type: PathPrefix
55+
value: /authors/
56+
backendRefs:
57+
- kind: Service
58+
name: sticktock-backend-service
59+
port: 2000
60+
- matches:
61+
- path:
62+
type: PathPrefix
63+
value: /audio/
64+
backendRefs:
65+
- kind: Service
66+
name: sticktock-backend-service
67+
port: 2000
68+
- matches:
69+
- path:
70+
type: PathPrefix
71+
value: /images/
72+
backendRefs:
73+
- kind: Service
74+
name: sticktock-backend-service
75+
port: 2000
76+
77+
# Route everything else to frontend
3378
- matches:
3479
- path:
3580
type: PathPrefix

0 commit comments

Comments
 (0)