fix remote ubuntu server

This commit is contained in:
2026-06-05 14:56:03 +07:00
parent 4b65838f0f
commit 08b94337ad
5 changed files with 130 additions and 47 deletions

View File

@@ -4,7 +4,7 @@ After=network.target
[Service]
WorkingDirectory=/opt/local-installer-agent
ExecStart=/opt/local-installer-agent/venv/bin/python -m uvicorn app.main:app --host 127.0.0.1 --port 5010
ExecStart=/opt/local-installer-agent/venv/bin/python -m uvicorn app.main:app --host ${AGENT_HOST} --port ${AGENT_PORT}
Restart=always
User=root
EnvironmentFile=/etc/local-installer-agent/agent.env