From 9e8b6e44bbbd072b259ba4b50e9fd0344a2d18d9 Mon Sep 17 00:00:00 2001 From: amorozov Date: Fri, 8 Sep 2023 01:19:19 +0300 Subject: [PATCH] feature: try set_by_lua func --- default.nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/default.nginx.conf b/default.nginx.conf index ae8986c..baf373e 100644 --- a/default.nginx.conf +++ b/default.nginx.conf @@ -1,7 +1,11 @@ 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; }