server {
    listen       80;
    listen  [::]:80;
    server_name  localhost;

    #access_log  /var/log/nginx/host.access.log  main;
	client_max_body_size 20M;  # 设置客户端请求的最大上传大小为 20MB,可以根据实际情况修改

   	location / {
   	root   /usr/share/nginx/html/dist;
   	index  index.html index.htm;
        }

   	error_page   500 502 503 504  /50x.html;
       location =  /50x.html {
           root   /usr/share/nginx/html/dist;
       }

   	# 前台后端服务
       location /intro-robot/ {
        proxy_pass http://web_servers/intro-robot/;
   		proxy_set_header Host $http_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;
       }
}