feat(deploy): 重构部署方案并添加 nginx 代理

- 新增 nginx 服务作为前端和后端的代理
- 重新配置前端和后端服务,不再直接暴露端口
- 更新前端 Dockerfile,简化为静态文件服务器- 在 MarkdownViewer 组件中添加 ExternalLink 图标
This commit is contained in:
黄建武
2025-05-06 13:56:43 +08:00
parent bab61d8462
commit be4c3313d4
6 changed files with 58 additions and 25 deletions

View File

@@ -1,7 +1,7 @@
import { useState, useEffect } from 'react'
import ReactMarkdown from 'react-markdown'
import { Button } from '@/components/ui/button.tsx'
import { Copy, Download, ArrowRight,Play } from 'lucide-react'
import { Copy, Download, ArrowRight,Play,ExternalLink } from 'lucide-react'
import { toast } from 'react-hot-toast'
import Error from '@/components/Lottie/error.tsx'
import Loading from '@/components/Lottie/Loading.tsx'