feat:增加Gitea代理

This commit is contained in:
2025-10-19 16:54:47 +08:00
parent a94d4f8fac
commit ef0ce9d8cd
2 changed files with 20 additions and 0 deletions

View File

@@ -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/;
}

View File

@@ -37,6 +37,14 @@
</div>
</el-card>
<el-card class="app-card" style="background-color: #c10fc7;"
@click="giteaClick">
<i class="fa-brands fa-git-alt"></i>
<div>
<span>Gitea</span>
</div>
</el-card>
<el-card class="app-card" style="background-color: #926851;"
@click="resumeClick">
<i class="fa-solid fa-newspaper"></i>
@@ -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('敬请期待')
}