feature: try set_by_lua func
Gitea/docker-base-images/nginx-routes/pipeline/head This commit looks good Details

release-0.0.9
amorozov 2023-09-08 01:19:19 +03:00
parent 8da9c6e598
commit 9e8b6e44bb
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}