feat:增加blogpress

This commit is contained in:
2025-11-26 23:49:15 +08:00
parent 72a7f8dfd0
commit 338f630f6a
2 changed files with 17 additions and 0 deletions

View File

@@ -15,6 +15,14 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
location /blog-press/ {
proxy_pass http://host.docker.internal:86/;
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 /sweet-hut/ {
proxy_pass http://host.docker.internal:83/;
proxy_set_header Host $host;

View File

@@ -13,6 +13,11 @@
<span>博客网站</span>
</el-dropdown-item>
<el-dropdown-item @click="blogPressClick">
<i class="fa-solid fa-book-open"></i>
<span>博客Press</span>
</el-dropdown-item>
<el-dropdown-item @click="blogAdminClick">
<i class="fa-solid fa-gear"></i>
<span>博客Admin</span>
@@ -81,6 +86,10 @@ const blogClick = () => {
window.open(`${window.location.origin}/blog/`, '_blank');
}
const blogPressClick = () => {
window.open(`${window.location.origin}/blog-press/`, '_blank');
}
const sweetHutClick = () => {
if (!isMobile()) {
ElMessage.info('暂不支持PC端访问')