Update nginx.conf
Browse files- nginx.conf +0 -13
nginx.conf
CHANGED
@@ -27,19 +27,6 @@ http {
|
|
27 |
}
|
28 |
}
|
29 |
|
30 |
-
# 新增 server 块监听 587 端口,并将请求代理到 3001 端口
|
31 |
-
server {
|
32 |
-
listen 587;
|
33 |
-
|
34 |
-
location / {
|
35 |
-
proxy_pass http://127.0.0.1:3001;
|
36 |
-
proxy_set_header Host $host;
|
37 |
-
proxy_set_header X-Real-IP $remote_addr;
|
38 |
-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
39 |
-
proxy_set_header X-Forwarded-Proto $scheme;
|
40 |
-
}
|
41 |
-
}
|
42 |
-
|
43 |
# 禁用错误日志输出
|
44 |
error_log /dev/null crit;
|
45 |
}
|
|
|
27 |
}
|
28 |
}
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
# 禁用错误日志输出
|
31 |
error_log /dev/null crit;
|
32 |
}
|