feature: try set_by_lua func
Gitea/docker-base-images/nginx-routes/pipeline/head This commit looks good
Details
Gitea/docker-base-images/nginx-routes/pipeline/head This commit looks good
Details
parent
8da9c6e598
commit
9e8b6e44bb
|
@ -1,7 +1,11 @@
|
||||||
events {}
|
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 {
|
stream {
|
||||||
server {
|
server {
|
||||||
|
|
||||||
listen $nginx_proxy_source_port;
|
listen $nginx_proxy_source_port;
|
||||||
proxy_pass $nginx_proxy_source_address;
|
proxy_pass $nginx_proxy_source_address;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue