Compare commits

..
3 Commits
Author SHA1 Message Date
shufeng2012 c1642dbc0c ➕ 添加.env依赖 2026-07-26 20:57:54 +08:00
shufeng2012 747c2ebd0a 🙈 更新smtp/.gitignore 2026-07-26 20:57:16 +08:00
shufeng2012 957981c2c3 🍱 更新脚本 2026-07-26 20:57:04 +08:00
7 changed files with 13 additions and 9 deletions

No files matched your search

+1
View File
@@ -34,4 +34,5 @@ inst_module "waf" # waf 在 gateway 之前编译,部署时由 core 先拉起 w
inst_module "static"
inst_module "dnfs"
inst_module "db"
inst_module "smtp"
inst_module "core" # core last
Regular → Executable
View File
File mode changed.
+1
View File
@@ -1,6 +1,7 @@
bash /opt/micro_servers/db/_run.sh
bash /opt/micro_servers/ai_review/_run.sh
bash /opt/micro_servers/dnfs/_run.sh
bash /opt/micro_servers/smtp/_run.sh
bash /opt/micro_servers/static/_run.sh
bash /opt/micro_servers/waf/_run.sh
bash /opt/micro_servers/gateway/_run.sh
+2 -1
View File
@@ -1,2 +1,3 @@
__pycache__/
.env/
.env
venv/
+2 -2
View File
@@ -1,7 +1,7 @@
#!/bin/bash
cd "$(dirname "$0")" || exit
python3 -m venv .env
python3 -m venv venv
#sudo chmod +x .env/bin/activate
source .env/bin/activate
source venv/bin/activate
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
#nuitka --standalone smtp.py
+2 -1
View File
@@ -3,4 +3,5 @@ flask
flask-cors
flask_sqlalchemy
#gunicorn
waitress
waitress
python-dotenv
+5 -5
View File
@@ -4,10 +4,15 @@ from flask import Flask, request, jsonify
from email.mime.text import MIMEText
from email import header
from log_client import logs
from dotenv import load_dotenv
import waitress
import smtplib
import random
import time
import sys, os
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
load_dotenv(os.path.join(os.path.dirname(os.path.abspath(__file__)), ".env"))
app = Flask(__name__)
captchas: dict[str, list[str, str]] = {}
@@ -22,11 +27,6 @@ def send_email():
captcha += str(digit)
return captcha
SMTP_SERVER: str = ""
SMTP_PORT: str = 0
SMTP_USER: str = ""
__PASSWORD: str = ""
data = request.get_json()
recipient: str = data.get("email")