This commit is contained in:
1 parent
162e1cc88a
commit
e0ccf9a350
1 file changed
+4
@@ -2,10 +2,14 @@ events {}
|
|||||||
|
|
||||||
stream {
|
stream {
|
||||||
server {
|
server {
|
||||||
|
set $nginx_proxy_source_port '';
|
||||||
|
set $nginx_proxy_source_address '';
|
||||||
|
|
||||||
content_by_lua_block {
|
content_by_lua_block {
|
||||||
ngx.var.nginx_proxy_source_port = os.getenv("$NGINX_PROXY_SOURCE_PORT");
|
ngx.var.nginx_proxy_source_port = os.getenv("$NGINX_PROXY_SOURCE_PORT");
|
||||||
ngx.var.nginx_proxy_source_address = os.getenv("$NGINX_PROXY_SOURCE_ADDRESS");
|
ngx.var.nginx_proxy_source_address = os.getenv("$NGINX_PROXY_SOURCE_ADDRESS");
|
||||||
}
|
}
|
||||||
|
|
||||||
listen $nginx_proxy_source_port;
|
listen $nginx_proxy_source_port;
|
||||||
proxy_pass $nginx_proxy_source_address;
|
proxy_pass $nginx_proxy_source_address;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user