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