-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunit-config.json
42 lines (42 loc) · 968 Bytes
/
unit-config.json
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
{
"listeners": {
"*:12321": {
"pass": "routes"
}
},
"routes": [
{
"match": {
"uri": [
"/api/*",
"/docs",
"/openapi.json",
"/redoc",
"/metrics"
]
},
"action": {
"pass": "applications/fastapi"
}
},
{
"action": {
"share": "/app/estimenergy-web$uri",
"fallback": {
"share": "/app/estimenergy-web/index.html"
}
}
}
],
"applications": {
"fastapi": {
"type": "python",
"user": "root",
"group": "root",
"path": "/app/estimenergy",
"working_directory": "/config",
"module": "main",
"callable": "app"
}
}
}