blablabla
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
11458e92f2
commit
4b0404f5df
|
@ -6,8 +6,11 @@ events {}
|
|||
|
||||
stream {
|
||||
server {
|
||||
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")';
|
||||
set_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");
|
||||
}
|
||||
|
||||
listen $nginx_proxy_source_port;
|
||||
proxy_pass $nginx_proxy_source_address;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue