We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca8415b commit aa24ca1Copy full SHA for aa24ca1
openresty-proxy/https-proxy/lua.https.proxy.conf
@@ -67,19 +67,7 @@ server {
67
local cert_path = ssl_dir .. "/" .. domain .. ".crt"
68
-- ngx.log(ngx.ERR, "ggggggggggggggg---3")
69
local key_path = ssl_dir .. "/" .. domain .. ".key"
70
-
71
- -- 判断是否https而且, 文件是否存在
72
- -- 也要判断default.crt是否存在
73
- if ngx.var.scheme == "https" and file_exists(cert_path) then
74
- ngx.log(ngx.INFO, "https and cert file exists")
75
- else
76
- if file_exists(ssl_dir .. "/default.crt") then
77
- ngx.log(ngx.INFO, "https and cert file not exists but use default")
78
- cert_path = ssl_dir .. "/default.crt"
79
- key_path = ssl_dir .. "/default.key"
80
- end
81
82
+
83
ngx.log(ngx.INFO, cert_path)
84
ngx.log(ngx.INFO, key_path)
85
0 commit comments