-
Notifications
You must be signed in to change notification settings - Fork 1
/
unit_config.json
42 lines (41 loc) · 1.07 KB
/
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": {
"*:8062": {
"pass": "routes"
}
},
"routes": [
{
"match": {
"uri": "/api/*"
},
"action": {
"pass": "applications/fastapi"
}
},
{
"match": {
"uri": "*"
},
"action": {
"share": ["/frontend$uri","/frontend/index.html"],
"index": "index.html",
"response_headers": {
"Cross-Origin-Embedder-Policy": "require-corp",
"Cross-Origin-Opener-Policy": "same-origin",
"Cross-Origin-Resource-Policy": "same-origin",
"Permissions-Policy": "interest-cohort=()"
}
}
}
],
"applications": {
"fastapi": {
"type": "python 3.11",
"module": "asgi",
"home": "/opt/venv",
"path": "/app",
"callable": "app"
}
}
}