feat:增加Gitea代理
This commit is contained in:
@@ -39,6 +39,14 @@ server {
|
|||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
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/ {
|
location /home-api/ {
|
||||||
proxy_pass http://host.docker.internal:8081/;
|
proxy_pass http://host.docker.internal:8081/;
|
||||||
}
|
}
|
||||||
|
|||||||
12
src/App.vue
12
src/App.vue
@@ -37,6 +37,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-card>
|
</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;"
|
<el-card class="app-card" style="background-color: #926851;"
|
||||||
@click="resumeClick">
|
@click="resumeClick">
|
||||||
<i class="fa-solid fa-newspaper"></i>
|
<i class="fa-solid fa-newspaper"></i>
|
||||||
@@ -99,6 +107,10 @@ const blogAdminClick = () => {
|
|||||||
window.open(`${window.location.origin}/blog-admin/`, '_blank');
|
window.open(`${window.location.origin}/blog-admin/`, '_blank');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const giteaClick = () => {
|
||||||
|
window.open(`${window.location.origin}/gitea/`, '_blank');
|
||||||
|
}
|
||||||
|
|
||||||
const resumeClick = () => {
|
const resumeClick = () => {
|
||||||
ElMessage.info('敬请期待')
|
ElMessage.info('敬请期待')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user