From 4c7558c2d7433e566aaf76f512a681f1cedb7529 Mon Sep 17 00:00:00 2001 From: William Mantly Date: Thu, 8 Aug 2024 09:17:51 -0400 Subject: [PATCH] Fixed nginx conf issue --- ops/nginx_conf/proxy.conf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ops/nginx_conf/proxy.conf b/ops/nginx_conf/proxy.conf index 5b66a0f..0c5a1ed 100644 --- a/ops/nginx_conf/proxy.conf +++ b/ops/nginx_conf/proxy.conf @@ -20,17 +20,19 @@ server { set $header_host $host; access_by_lua ' - ngx.log(ngx.ERR, "!!!!!!!!! proxy.conf !!!!!!!! ", domain) local res = ngx.ctx.targetInfo + local host = ngx.var.host + local uri = ngx.var.uri + local scheme = ngx.var.scheme + + ngx.log(ngx.ERR, "!!!!!!!!! proxy.conf !!!!!!!! ", domain) + if not res then ngx.log(ngx.ERR, "This should not happen", domain) ngx.exit(406) return false end - local host = ngx.var.host - local uri = ngx.var.uri - local scheme = ngx.var.scheme if scheme == "http" then if res["forcessl"] == "true" then