поменял порт на 8001
This commit is contained in:
@@ -113,14 +113,14 @@ check_required_files() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setup_firewall() {
|
setup_firewall() {
|
||||||
log_info "Открытие порта 8000..."
|
log_info "Открытие порта 8001..."
|
||||||
|
|
||||||
if command -v ufw >/dev/null 2>&1 && systemctl is-active --quiet ufw; then
|
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
|
fi
|
||||||
|
|
||||||
if command -v firewall-cmd >/dev/null 2>&1 && systemctl is-active --quiet firewalld; then
|
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
|
firewall-cmd --reload || true
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -151,7 +151,7 @@ User=root
|
|||||||
WorkingDirectory=$TARGET_DIR
|
WorkingDirectory=$TARGET_DIR
|
||||||
Environment="PATH=$TARGET_DIR/.venv/bin"
|
Environment="PATH=$TARGET_DIR/.venv/bin"
|
||||||
EnvironmentFile=$TARGET_ENV
|
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
|
Restart=always
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|||||||
Reference in New Issue
Block a user