Skip to content

Commit 22ab4cb

Browse files
committed
fix: Update ingress.yaml to remove unnecessary rewrite target annotation
1 parent b92ba4c commit 22ab4cb

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM ubuntu:22.04
22
WORKDIR /app
33
COPY target/release/GitDataOS .
4+
RUN apt-get update && apt-get install -y ca-certificates git libssl-dev openssl
45
RUN chmod +x GitDataOS
56
CMD ["/app/GitDataOS"]

vite-project/charts/templates/ingress.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ metadata:
4444
namespace: gitdata
4545
annotations:
4646
meta.helm.sh/release-name: gitdataweb-api
47-
nginx.ingress.kubernetes.io/rewrite-target: /
4847
nginx.ingress.kubernetes.io/proxy-connect-timeout: "30"
4948
nginx.ingress.kubernetes.io/proxy-read-timeout: "1800"
5049
nginx.ingress.kubernetes.io/proxy-send-timeout: "1800"

vite-project/nginx.conf

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ http {
1818
location / {
1919
root /usr/share/nginx/html;
2020
index index.html index.htm;
21-
try_files $uri $uri/ /index.html;
21+
try_files $uri /index.html;
22+
expires max;
23+
add_header Cache-Control "public";
2224
}
2325
error_page 500 502 503 504 /50x.html;
2426
location = /50x.html {

0 commit comments

Comments
 (0)