Skip to content

Commit

Permalink
Fixed nginx conf issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wmantly committed Aug 8, 2024
1 parent 8c53b12 commit 4c7558c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ops/nginx_conf/proxy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c7558c

Please sign in to comment.