23 lines
743 B
Plaintext
23 lines
743 B
Plaintext
# onboardx-api.cnzhyx.cn 的外层 Nginx 示例。
|
|
# 只暴露契约锁回调;后台和员工接口分别通过两个前端域名反向代理。
|
|
server {
|
|
listen 80;
|
|
server_name onboardx-api.cnzhyx.cn;
|
|
|
|
location = /api/open/onboarding/qiyuesuo/callback {
|
|
proxy_pass http://onboardx-api-svc:5566/open/onboarding/qiyuesuo/callback;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_connect_timeout 60s;
|
|
proxy_read_timeout 300s;
|
|
proxy_send_timeout 300s;
|
|
}
|
|
|
|
location / {
|
|
return 404;
|
|
}
|
|
}
|