summaryrefslogtreecommitdiff
path: root/pod/nginx/ngx_stream_pass_module.pod
blob: fe7145dbdef77ebd260f26fa7c38a58fcce74c26 (plain)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
=encoding utf-8

=head1 NAME

ngx_stream_pass_module - Module ngx_stream_pass_module




=head1



The C<ngx_stream_pass_module> module (1.25.5) allows
passing the accepted connection directly to any configured listening socket
in C<http>, C<stream>, C<mail>,
and other similar modules.




=head1 Example Configuration




    
    http {
        server {
            listen 8000;
    
            location / {
                root html;
            }
        }
    }
    
    stream {
        server {
            listen 12345 ssl;
    
            ssl_certificate     domain.crt;
            ssl_certificate_key domain.key;
    
            pass 127.0.0.1:8000;
        }
    }


In the example,
after terminating SSLE<sol>TLS in the C<stream> module
the connection is passed to the C<http> module.




=head1 Directives

=head2 pass


B<syntax:> pass I<I<C<address>>>



B<context:> I<server>





Sets server address to pass client connection to.
The address can be specified as an IP address
and a port:

    
    pass 127.0.0.1:12345;


or as a UNIX-domain socket path:

    
    pass unix:/tmp/stream.socket;







The address can also be specified using variables:

    
    pass $upstream;