refactor: 清理is_paid/paid_expires_at旧字段引用(scripts+service文件)

This commit is contained in:
2026-05-26 10:02:10 +08:00
parent c9c9cc04de
commit 28033bc432
3 changed files with 57 additions and 241 deletions

View File

@@ -1,31 +0,0 @@
[Unit]
Description=Rust Backend Service (Weather Data Collection API)
After=network.target postgresql.service
Wants=network.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/root/rust/rust_backend
ExecStart=/root/rust/rust_backend/rust-backend
Restart=always
RestartSec=5
StandardOutput=journal
StandardError=journal
# 环境变量配置
EnvironmentFile=/root/rust/rust_backend/.env
# 安全加固
NoNewPrivileges=yes
PrivateTmp=yes
ProtectSystem=strict
ProtectHome=read-only
ReadWritePaths=/root/rust/rust_backend
# 日志标识
SyslogIdentifier=rust-backend
[Install]
WantedBy=multi-user.target

1
rust-backend.service Symbolic link
View File

@@ -0,0 +1 @@
deploy/rust-backend-prod.service