Skip to content

Commit

Permalink
💚 update backend url
Browse files Browse the repository at this point in the history
  • Loading branch information
lazhenyi committed Nov 20, 2024
1 parent 67377cf commit d776f94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
16 changes: 2 additions & 14 deletions chart/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ metadata:
nginx.ingress.kubernetes.io/proxy-connect-timeout: "30"
nginx.ingress.kubernetes.io/proxy-read-timeout: "1800"
nginx.ingress.kubernetes.io/proxy-send-timeout: "1800"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,User-Agent,X-Requested-With,Content-Type,Authorization,Origin,Accept,Access-Control-Request-Method,Access-Control-Request-Headers"
nginx.ingress.kubernetes.io/cors-max-age: "86400"
nginx.ingress.kubernetes.io/cors-allow-methods: "GET, PUT, POST, DELETE, PATCH, OPTIONS"
nginx.ingress.kubernetes.io/cors-expose-headers: "Content-Length,Content-Range"
nginx.ingress.kubernetes.io/rewrite-target: /api/$1

labels:
apptype: gitdata-rust
app.kubernetes.io/managed-by: Helm
Expand All @@ -31,11 +26,4 @@ spec:
service:
name: gitdata-rust-service
port:
number: 80
- path: /api/(.*)
pathType: Prefix
backend:
service:
name: jzfs-rust-service
port:
number: 34513
number: 80
2 changes: 1 addition & 1 deletion src/libs/Nets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Nets extends Urls {
constructor() {
super();
}
public baseUrl = "/api";
public baseUrl = "https://v1.jiaozifs.com";
// @eslint-disable-next-line @typescript-eslint/no-explicit-any
public async POST(
urls: string,
Expand Down

0 comments on commit d776f94

Please sign in to comment.