15 lines
420 B
Plaintext
15 lines
420 B
Plaintext
load_module /usr/lib/nginx/modules/ndk_http_module.so;
|
|
load_module /usr/lib/nginx/modules/ngx_http_lua_module.so;
|
|
|
|
events {}
|
|
|
|
set_by_lua $nginx_proxy_source_port 'return os.getenv("$NGINX_PROXY_SOURCE_PORT")';
|
|
set_by_lua $nginx_proxy_source_address 'return os.getenv("$NGINX_PROXY_SOURCE_ADDRESS")';
|
|
|
|
stream {
|
|
server {
|
|
|
|
listen $nginx_proxy_source_port;
|
|
proxy_pass $nginx_proxy_source_address;
|
|
}
|
|
} |