ActivityPub Webhook Error
之前的Ghost托管在PikaPods上面,其实相当于是Managed Ghost,所以你不需要去操心后台的配置。最近换了服务商,那么情况就不一杨了,不少问题都需要自己去处理,其中一个问题就是ActivityPub无法正常使用。
错误排查
查看log后发现就是No Webhook Secret Found的错误。
原因分析
/.ghost/activitypub/*/.well-known/webfinger/.well-known/nodeinfo
ActivityPub资源并未正确配置,并未通过https反对带至ap.ghost.org。
处理办法
将需要反代的路径添加至nginx配置文件即可:
location ~ /.ghost/activitypub/* {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_ssl_server_name on;
proxy_pass https://ap.ghost.org;
}
location ~ /.well-known/(webfinger|nodeinfo) {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_ssl_server_name on;
proxy_pass https://ap.ghost.org;
}
参考文章
https://lunzai.com/ghost-blog-v6-breaking-changes-fixing-the-activitypub-webhook-error/



