xref: /unit/pkg/rpm/rpmbuild/SOURCES/unit.example.config (revision 1753:7d8644d56ed5)
1372Sdefan@nginx.com{
2372Sdefan@nginx.com	"applications": {
3372Sdefan@nginx.com		"example_php": {
4372Sdefan@nginx.com			"type": "php",
5522Sdefan@nginx.com			"processes": 2,
6372Sdefan@nginx.com			"root": "/usr/share/doc/unit-php/examples/phpinfo-app",
7372Sdefan@nginx.com			"index": "index.php"
8372Sdefan@nginx.com		},
9372Sdefan@nginx.com
10372Sdefan@nginx.com		"example_python": {
11372Sdefan@nginx.com			"type": "python",
12522Sdefan@nginx.com			"processes": 2,
13372Sdefan@nginx.com			"path": "/usr/share/doc/unit-python/examples/python-app",
14372Sdefan@nginx.com			"module": "wsgi"
15372Sdefan@nginx.com		},
16372Sdefan@nginx.com
17372Sdefan@nginx.com		"example_go": {
18804Svbart@nginx.com			"type": "external",
19372Sdefan@nginx.com			"executable": "/tmp/go-app"
20524Sdefan@nginx.com		},
21524Sdefan@nginx.com
22524Sdefan@nginx.com		"example_perl": {
23524Sdefan@nginx.com			"type": "perl",
24524Sdefan@nginx.com			"processes": 1,
25524Sdefan@nginx.com			"working_directory": "/usr/share/doc/unit-perl/examples/perl-app",
26524Sdefan@nginx.com			"script": "/usr/share/doc/unit-perl/examples/perl-app/index.pl"
27372Sdefan@nginx.com		}
28372Sdefan@nginx.com	},
29372Sdefan@nginx.com
30372Sdefan@nginx.com	"listeners": {
31372Sdefan@nginx.com		"*:8300": {
32*1045Svbart@nginx.com			"pass": "applications/example_php"
33372Sdefan@nginx.com		},
34372Sdefan@nginx.com
35372Sdefan@nginx.com		"*:8400": {
36*1045Svbart@nginx.com			"pass": "applications/example_python"
37372Sdefan@nginx.com		},
38372Sdefan@nginx.com
39372Sdefan@nginx.com		"*:8500": {
40*1045Svbart@nginx.com			"pass": "applications/example_go"
41524Sdefan@nginx.com		},
42524Sdefan@nginx.com
43524Sdefan@nginx.com		"*:8600": {
44*1045Svbart@nginx.com			"pass": "applications/example_perl"
45372Sdefan@nginx.com		}
46372Sdefan@nginx.com	}
47372Sdefan@nginx.com}
48