mirror of
https://github.com/Cccc-owo/CheckInApp.git
synced 2026-06-17 05:56:29 +00:00
5430dc03f4
- Fix emailing. - Updated manage.sh to enhance command handling and service management for backend and frontend. - Introduced utility functions for better code organization and readability. - Added support for checking Node.js version and ensuring the virtual environment is set up. - Implemented improved logging with color-coded output for better visibility. - Created a new nginx.conf.example file for easy Nginx configuration setup for the application.
48 lines
1.9 KiB
Bash
48 lines
1.9 KiB
Bash
# 环境变量配置示例
|
||
# 复制此文件为 .env 并修改相应的值
|
||
|
||
# ==================== 基础配置 ====================
|
||
# 数据库配置(可选,默认使用 SQLite)
|
||
# DATABASE_URL=sqlite:///./data/checkin.db
|
||
# DATABASE_URL=postgresql://user:password@localhost/checkin
|
||
|
||
# CORS 允许的前端域名(逗号分隔,生产环境必须修改)
|
||
CORS_ORIGINS=http://localhost:3000
|
||
|
||
# 日志级别(可选:DEBUG, INFO, WARNING, ERROR)
|
||
LOG_LEVEL=INFO
|
||
|
||
# ==================== 邮件配置 ====================
|
||
# SMTP 服务器地址(例如:smtp.qq.com, smtp.gmail.com, smtp.163.com)
|
||
SMTP_SERVER=smtp.example.com
|
||
|
||
# SMTP 服务器端口(通常 SSL/TLS 使用 465,STARTTLS 使用 587)
|
||
SMTP_PORT=465
|
||
|
||
# 发件人邮箱地址
|
||
SMTP_SENDER_EMAIL=your-email@example.com
|
||
|
||
# 邮箱密码或授权码
|
||
# 重要提示:这里通常不是你的邮箱登录密码,而是邮箱服务商提供的"应用专用密码"或"授权码"
|
||
# QQ邮箱:设置 -> 账户 -> POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV服务 -> 生成授权码
|
||
# Gmail:安全 -> 两步验证 -> 应用专用密码
|
||
# 163邮箱:设置 -> POP3/SMTP/IMAP -> 授权密码管理
|
||
SMTP_SENDER_PASSWORD=your-auth-code-here
|
||
|
||
# 是否使用 SSL/TLS(True/False,默认 True)
|
||
SMTP_USE_SSL=True
|
||
|
||
# ==================== Selenium / Chrome 配置 ====================
|
||
# Chrome 浏览器可执行文件路径(可选,留空则自动检测系统 Chrome)
|
||
# Windows 示例:CHROME_BINARY_PATH=C:\Program Files\Google\Chrome\Application\chrome.exe
|
||
# Linux 示例:CHROME_BINARY_PATH=/usr/bin/google-chrome
|
||
# 如果留空,Selenium 会使用系统默认 Chrome
|
||
CHROME_BINARY_PATH=
|
||
|
||
# ChromeDriver 可执行文件路径(可选,留空则使用 Selenium Manager 自动下载)
|
||
# Windows 示例:CHROMEDRIVER_PATH=D:\chromedriver\chromedriver.exe
|
||
# Linux 示例:CHROMEDRIVER_PATH=/usr/local/bin/chromedriver
|
||
# 推荐留空,让 Selenium Manager 自动管理 ChromeDriver 版本
|
||
CHROMEDRIVER_PATH=
|
||
|