配置 NginX :

  location / {
    proxy_pass http://127.0.0.1:8080;

    resolver_timeout 30s;

    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr; …

阅读全文