nginx-routes/default.nginx.conf

19 lines
547 B
Plaintext
Raw Normal View History

events {}
stream {
server {
2023-09-08 01:38:50 +02:00
set $nginx_proxy_source_port '';
set $nginx_proxy_source_address '';
2023-09-08 00:56:16 +02:00
content_by_lua_block {
2023-09-08 00:53:22 +02:00
ngx.var.nginx_proxy_source_port = os.getenv("$NGINX_PROXY_SOURCE_PORT");
ngx.var.nginx_proxy_source_address = os.getenv("$NGINX_PROXY_SOURCE_ADDRESS");
2023-09-08 01:41:43 +02:00
ngx.say(ngx.var.nginx_proxy_source_port)
ngx.say(ngx.var.nginx_proxy_source_address)
2023-09-08 00:53:22 +02:00
}
2023-09-08 01:38:50 +02:00
2023-09-08 00:12:46 +02:00
listen $nginx_proxy_source_port;
proxy_pass $nginx_proxy_source_address;
}
}