16 lines
520 B
Plaintext
16 lines
520 B
Plaintext
load_module /usr/lib/nginx/modules/ndk_http_module.so;
|
|
load_module /usr/lib/nginx/modules/ngx_http_lua_module.so;
|
|
load_module /usr/lib/nginx/modules/ngx_stream_module.so;
|
|
|
|
events {}
|
|
|
|
stream {
|
|
server {
|
|
content_by_lua_block {
|
|
ngx.var.nginx_proxy_source_port = os.getenv("$NGINX_PROXY_SOURCE_PORT");
|
|
ngx.var.nginx_proxy_source_address = os.getenv("$NGINX_PROXY_SOURCE_ADDRESS");
|
|
}
|
|
listen $nginx_proxy_source_port;
|
|
proxy_pass $nginx_proxy_source_address;
|
|
}
|
|
} |