blablabla
Gitea/docker-base-images/nginx-routes/pipeline/head This commit looks good Details

release-0.0.20
amorozov 2023-09-08 01:53:22 +03:00
parent 11458e92f2
commit 4b0404f5df
1 changed files with 5 additions and 2 deletions

View File

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