Ghost Webhook失败,显示“ UNABLE_TO_VERIFY_LEAF_SIGNATURE”

时间:2019-08-11 12:42:01

标签: webhooks ghost-blog

问题摘要

我有{。{1}}监听的node.js应用。 Ghost博客也位于https://myserver.com/webhook。当我在已发布的事件帖子上添加Webhook并发布帖子时,失败,并显示https://myserver.com

这是我的Nginx配置:

Request to https://myserver.com/webhook failed because of: UNABLE_TO_VERIFY_LEAF_SIGNATURE.

还有index.js:

server {
  server_name myserver.com;
  listen 443;
  ssl on;
  client_max_body_size 4G;
  keepalive_timeout 5;

  ssl_certificate /etc/letsencrypt/live/myserver.com-0001/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/myserver.com-0001/privkey.pem;

  location /webhook {
    proxy_read_timeout 6000s;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header Host $http_host;
    proxy_redirect off;
    proxy_pass http://localhost:3001;
  }

  location / {
    proxy_read_timeout 6000s;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header Host $http_host;
    proxy_redirect off;
    proxy_pass http://localhost:2368;
  }
}

server {
  server_name myserver.com;
  listen 80;

  location / {
    return 301 https://$server_name$request_uri;
  }

  location /.well-known/ {
    alias /var/www/html/.well-known/;
  }
}

技术细节:

  • Ghost版本:2.27.0
  • 节点版本:8.10.0
  • 操作系统:Ubuntu 18.04.2 LTS
  • 数据库:mysql

0 个答案:

没有答案