From 338f630f6ae265d22fdd421d07d6183e26268c04 Mon Sep 17 00:00:00 2001
From: Cxx0822 <1556464090@qq.com>
Date: Wed, 26 Nov 2025 23:49:15 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0blogpress?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
nginx.conf | 8 ++++++++
src/App.vue | 9 +++++++++
2 files changed, 17 insertions(+)
diff --git a/nginx.conf b/nginx.conf
index ff6ec58..d10e4e1 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -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;
diff --git a/src/App.vue b/src/App.vue
index d108e7d..99a6810 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -13,6 +13,11 @@
博客网站
+
+
+ 博客Press
+
+
博客Admin
@@ -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端访问')