1.nginx配置.md

反向代理

echo "server {
    listen       80;
    listen  [::]:80;
    server_name  fat-bff-admin.d.cn;

    #access_log  /var/log/nginx/uat-bff-admin.d.cn.access.log  main;

    proxy_set_header Host \$host;

    location / {
        proxy_pass   http://upstream.d.cn;
    }
}

upstream upstream.d.cn {
    server 127.0.0.1:28292 weight=100 max_fails=1 fail_timeout=5s;
}">bff.conf

Copyright © 2018 INSTALL.REN