Compare commits
2 Commits
release-0.
...
release-0.
| Author | SHA1 | Date | |
|---|---|---|---|
| 1f211936ad | |||
| e0ccf9a350 |
@@ -2,10 +2,17 @@ events {}
|
||||
|
||||
stream {
|
||||
server {
|
||||
set $nginx_proxy_source_port '';
|
||||
set $nginx_proxy_source_address '';
|
||||
|
||||
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");
|
||||
|
||||
ngx.say(ngx.var.nginx_proxy_source_port)
|
||||
ngx.say(ngx.var.nginx_proxy_source_address)
|
||||
}
|
||||
|
||||
listen $nginx_proxy_source_port;
|
||||
proxy_pass $nginx_proxy_source_address;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user