-
Notifications
You must be signed in to change notification settings - Fork 1
/
unitconf.json
65 lines (62 loc) · 1.82 KB
/
unitconf.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"access_log": "/dev/stdout",
"listeners": {
"*:9000": {
"pass": "routes"
}
},
"routes": [
{
"action": {
"share": "/var/www/unit-calculator/frontend$uri",
"fallback": {
"pass": "applications$uri"
}
}
}
],
"applications": {
"add": {
"type": "python",
"path": "/var/www/unit-calculator/backend",
"module": "add"
},
"subtract": {
"type": "ruby",
"working_directory": "/var/www/unit-calculator/backend",
"script": "subtract.ru"
},
"multiply": {
"type": "java",
"webapp": "/var/www/unit-calculator/backend/multiply-0.0.1-SNAPSHOT.war"
},
"divide": {
"type": "external",
"working_directory": "/var/www/unit-calculator/backend",
"executable": "divide.js"
},
"sqroot": {
"type": "external",
"working_directory": "/var/www/unit-calculator/backend",
"executable": "sqroot"
},
"square": {
"type": "php",
"root": "/var/www/unit-calculator/backend",
"script": "square.php"
},
"power": {
"type": "wasm",
"module": "/var/www/unit-calculator/backend/power.wasm",
"request_handler": "uwr_request_handler",
"malloc_handler": "luw_malloc_handler",
"free_handler": "luw_free_handler",
"module_init_handler": "uwr_module_init_handler",
"module_end_handler": "uwr_module_end_handler"
},
"inverse": {
"type": "perl",
"script": "/var/www/unit-calculator/backend/inverse.psgi"
}
}
}