2023-09-08 00:37:03 +02:00
|
|
|
load_module /usr/lib/nginx/modules/ndk_http_module.so;
|
|
|
|
load_module /usr/lib/nginx/modules/ngx_http_lua_module.so;
|
2023-09-08 00:22:03 +02:00
|
|
|
|
2023-09-07 23:59:00 +02:00
|
|
|
events {}
|
|
|
|
|
|
|
|
stream {
|
|
|
|
server {
|
2023-09-08 00:43:56 +02:00
|
|
|
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")';
|
2023-09-08 00:12:46 +02:00
|
|
|
listen $nginx_proxy_source_port;
|
|
|
|
proxy_pass $nginx_proxy_source_address;
|
2023-09-07 23:59:00 +02:00
|
|
|
}
|
|
|
|
}
|