поменял порт на 8001

This commit is contained in:
2026-04-20 14:13:58 +03:00
parent 35663fa588
commit bce1990e29

View File

@@ -113,14 +113,14 @@ check_required_files() {
}
setup_firewall() {
log_info "Открытие порта 8000..."
log_info "Открытие порта 8001..."
if command -v ufw >/dev/null 2>&1 && systemctl is-active --quiet ufw; then
ufw allow 8000/tcp || log_warn "Не удалось открыть порт 8000 в ufw"
ufw allow 8001/tcp || log_warn "Не удалось открыть порт 8001 в ufw"
fi
if command -v firewall-cmd >/dev/null 2>&1 && systemctl is-active --quiet firewalld; then
firewall-cmd --permanent --add-port=8000/tcp || true
firewall-cmd --permanent --add-port=8001/tcp || true
firewall-cmd --reload || true
fi
}
@@ -151,7 +151,7 @@ User=root
WorkingDirectory=$TARGET_DIR
Environment="PATH=$TARGET_DIR/.venv/bin"
EnvironmentFile=$TARGET_ENV
ExecStart=$TARGET_DIR/.venv/bin/uvicorn app:app --host 0.0.0.0 --port 8000
ExecStart=$TARGET_DIR/.venv/bin/uvicorn app:app --host 0.0.0.0 --port 8001
Restart=always
RestartSec=5