1Catalyst::Manual::DeploUysmeerntC:o:nNtCGraIitNbaXulUtynesidtt::P::eMPraSlnGuIDa(ol3c:)u:mDeenptlaotyimoennt::NGINXUnit::PSGI(3)
2
3
4

NAME

6       Catalyst::Manual::Deployment::NGINXUnit::PSGI - Deploying Catalyst with
7       NGINX Unit
8

NGINX Unit

10       Catalyst runs under NGINX Unit <https://unit.nginx.org> using PSGI.
11
12   Configuration
13       To configure a Catalyst app in NGINX Unit, upload a JSON configuration
14       snippet via Unit's config API, available at an IP socket or a Unix
15       domain socket (depending on Unit's startup settings):
16
17           # curl -X PUT --data-binary @config.json --unix-socket \
18              /path/to/control.unit.sock http://localhost/config
19
20       A minimal configuration <https://unit.nginx.org/configuration/#perl>
21       includes a listener and an application entity:
22
23           {
24               "listeners": {
25                   "127.0.0.1:8080": {
26                       "pass": "applications/catalyst_app"
27                   }
28               },
29
30               "applications": {
31                   "catalyst_app": {
32                       "type": "perl",
33                       "script": "/path/to/apps/myapp/myapp.psgi",
34                       "user": "catalyst_user",
35                       "group": "catalyst_group"
36                   }
37               }
38           }
39
40       The "script" should point to your app's ".psgi" file; "user" and
41       "group" should have appropriate access rights.
42
43       After a successful reconfiguration, you can manage your Catalyst app
44       via the same config API.
45
46           Note: make sure the app's ".psgi" file includes the "lib/"
47           directory:
48
49               use lib 'lib';
50               use myapp;
51

MORE INFO

53       For more information on NGINX Unit, visit: <http://unit.nginx.org>
54

AUTHORS

56       Catalyst Contributors, see Catalyst.pm
57
59       This library is free software. You can redistribute it and/or modify it
60       under the same terms as Perl itself.
61
62
63
64perl v5.32.0                  Cata2l0y2s0t-:0:7M-a2n8ual::Deployment::NGINXUnit::PSGI(3)
Impressum