xref: /unit/pkg/rpm/rpmbuild/SOURCES/unit.example.config (revision 1753:7d8644d56ed5)
1{
2	"applications": {
3		"example_php": {
4			"type": "php",
5			"processes": 2,
6			"root": "/usr/share/doc/unit-php/examples/phpinfo-app",
7			"index": "index.php"
8		},
9
10		"example_python": {
11			"type": "python",
12			"processes": 2,
13			"path": "/usr/share/doc/unit-python/examples/python-app",
14			"module": "wsgi"
15		},
16
17		"example_go": {
18			"type": "external",
19			"executable": "/tmp/go-app"
20		},
21
22		"example_perl": {
23			"type": "perl",
24			"processes": 1,
25			"working_directory": "/usr/share/doc/unit-perl/examples/perl-app",
26			"script": "/usr/share/doc/unit-perl/examples/perl-app/index.pl"
27		}
28	},
29
30	"listeners": {
31		"*:8300": {
32			"pass": "applications/example_php"
33		},
34
35		"*:8400": {
36			"pass": "applications/example_python"
37		},
38
39		"*:8500": {
40			"pass": "applications/example_go"
41		},
42
43		"*:8600": {
44			"pass": "applications/example_perl"
45		}
46	}
47}
48