-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathinstall.json
More file actions
57 lines (57 loc) · 1.55 KB
/
Copy pathinstall.json
File metadata and controls
57 lines (57 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"name": "CPA-X",
"version": "2.1.2",
"description": "CLIProxyAPI 管理面板",
"language": "python",
"entrypoint": "app.py",
"env_example": ".env.example",
"env_examples": [".env.example", ".env.docker.example"],
"ports": [8080],
"healthcheck": {
"path": "/api/resources",
"method": "GET",
"timeout_seconds": 5
},
"docker": {
"dockerfile": "Dockerfile",
"compose": "docker-compose.yml",
"env_example": ".env.docker.example",
"notes": "Container mode is good for monitoring; auto-update/service control (systemd) is typically unavailable."
},
"install": {
"venv_dir": ".venv",
"requirements": "requirements.txt",
"windows": {
"steps": [
"python -m venv .venv",
".venv\\Scripts\\activate",
"pip install -r requirements.txt",
"copy .env.example .env"
],
"start": "python app.py"
},
"linux": {
"steps": [
"python3 -m venv .venv",
"source .venv/bin/activate",
"pip install -r requirements.txt",
"cp .env.example .env",
"python3 scripts/doctor.py --write-env"
],
"start": "python3 app.py",
"systemd": {
"service_name": "cliproxy-panel",
"description": "CLIProxy Management Panel",
"exec_start": ".venv/bin/python app.py",
"working_directory": ".",
"restart": "always",
"restart_sec": 5
}
}
},
"scripts": {
"auto_install": "scripts/auto_install.py",
"install_sh": "scripts/install.sh",
"install_ps1": "scripts/install.ps1"
}
}