From ef0ce9d8cd3f1503ba11e794dcf059b44a2c7adb Mon Sep 17 00:00:00 2001
From: Cxx0822 <1556464090@qq.com>
Date: Sun, 19 Oct 2025 16:54:47 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0Gitea=E4=BB=A3=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
nginx.conf | 8 ++++++++
src/App.vue | 12 ++++++++++++
2 files changed, 20 insertions(+)
diff --git a/nginx.conf b/nginx.conf
index fa76afd..6de16ae 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -39,6 +39,14 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
+ location /gitea/ {
+ proxy_pass http://host.docker.internal:8418/;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ }
+
location /home-api/ {
proxy_pass http://host.docker.internal:8081/;
}
diff --git a/src/App.vue b/src/App.vue
index e5700e9..1623b17 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -37,6 +37,14 @@
+
+
+
+ Gitea
+
+
+
@@ -99,6 +107,10 @@ const blogAdminClick = () => {
window.open(`${window.location.origin}/blog-admin/`, '_blank');
}
+const giteaClick = () => {
+ window.open(`${window.location.origin}/gitea/`, '_blank');
+}
+
const resumeClick = () => {
ElMessage.info('敬请期待')
}