看到github有人提issue,但是苦于github的2fa丢失无法登陆,所以在此记录,希望有缘人看到
解决步骤十分简单

  1. 安装 ngx_http_sub_module,这个各个发行版基本都有,没有的根据nginx wiki ngx_http_sub_module自行编译一下
  2. 反代sonic的配置文件添加如下配置:
	location /sitemap.xml {
        proxy_pass http://127.0.0.1:8080/sitemap.xml;
        sub_filter_types *;
        sub_filter '<loc>/' '<loc>https://$host/';
        sub_filter_once off;
        }
  1. 重新加载配置文件就可以了