Skip to content

Commit d996de3

Browse files
committed
feat(deployment): 添加1Panel集成部署方案
新增1Panel面板与OpenResty的集成部署方案,包含以下主要变更: - 添加1Panel专用的docker-compose.1panel.yml配置文件 - 提供1Panel集成部署脚本deploy-1panel.sh - 新增OpenResty站点配置文件1panel-configs/blog-site.conf - 编写详细的1Panel集成指南文档1PANEL-INTEGRATION.md - 更新README.md添加1Panel部署说明 - 添加.env环境变量模板文件 该集成方案使项目可通过1Panel面板统一管理,提供SSL自动化、性能优化和安全增强等功能
1 parent 7bd90de commit d996de3

6 files changed

Lines changed: 1405 additions & 0 deletions

File tree

.env

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Environment Variables Template
2+
# Copy this file to .env and fill in your actual values
3+
4+
# Database Configuration
5+
POSTGRES_PASSWORD=your_secure_password_here
6+
POSTGRES_USER=postgres
7+
POSTGRES_DB=Blog
8+
DATABASE_URL=postgres://postgres:your_secure_password_here@postgres:5432/Blog
9+
10+
# JWT Configuration
11+
JWT_SECRET=your_super_secret_jwt_key_change_this_in_production_with_minimum_32_characters
12+
13+
# API Configuration
14+
PUBLIC_API_BASE_URL=http://localhost:8080/api
15+
INTERNAL_API_BASE_URL=http://backend:8080/api
16+
17+
# Frontend Configuration
18+
HOST=0.0.0.0
19+
PORT=4321
20+
21+
# CORS Configuration (comma-separated)
22+
ALLOWED_ORIGINS=http://localhost:4321,https://yourdomain.com,http://frontend:4321
23+
24+
# Production Settings
25+
NODE_ENV=production

0 commit comments

Comments
 (0)