mirror of
https://github.com/Finb/bark-server.git
synced 2026-04-26 14:15:56 +03:00
[GH-ISSUE #47] 运行后无法访问 #38
Labels
No labels
enhancement
in progress
need test
pull-request
v2
v2
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bark-server#38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @odemon0 on GitHub (Mar 2, 2021).
Original GitHub issue: https://github.com/Finb/bark-server/issues/47
访问http://0.0.0.0:8080/ping 返回以下信息
访问http://0.0.0.0:8080 返回以下信息
app里添加服务器也提示填写的服务器无效,网络链接中断
@mritd commented on GitHub (Mar 3, 2021):
服务器运行是正常的,你确认一下外网访问 https://IP:8080/ping 是否正常,该有 app 里默认是 https 的前缀
@odemon0 commented on GitHub (Mar 3, 2021):
感谢答复,今天再次尝试在app里添加服务器成功。但是通过ip访问http://x.x.x.x:8080/vhezqmbacpmxcckx/test/test,返回错误信息:
我搜了一下,是需要我去苹果开发者里面上传证书吗?
另外,我是采用可执行文件方式安装的,vps上本来有个网站还在运行,我添加到/bark的二级目录下后,访问https://www.xx.com/bark/ping,得到的返回信息为:
与同时刻用ip访问的信息不一样,麻烦大佬再帮忙看看是什么问题。
nginx里面的配置是加了下面的代码
location ^~ /bark {
proxy_pass http://127.0.0.1:8080;
}
@mritd commented on GitHub (Mar 4, 2021):
麻烦执行
curl -kiv https://api.push.apple.com/3/device/162e7d2b3b2f4508222883b8ff0ae7ba689e1d1d5d684051c150a785ff6b7846%5C给一下完整日志,v2.0 开始 server 端已经内嵌了 apple 的相关 CA,理论上 不应该出现这个错误;这个错误一般两种情况:
所以麻烦执行一下上面的命令,给一下完整日志 我这边判断一下到底是啥情况。
@odemon0 commented on GitHub (Mar 4, 2021):
curl -kiv https://api.push.apple.com/3/device/162e7d2b3b2f4508222883b8ff0ae7ba689e1d1d5d684051c150a785ff6b7846%5C
CApath: /etc/ssl/certs
< HTTP/2 405
HTTP/2 405
< apns-id: A0A4A829-D566-E05C-BA92-C363FF3EDD41
apns-id: A0A4A829-D566-E05C-BA92-C363FF3EDD41
<
dns用的是119.29.29.29&114
@mritd commented on GitHub (Mar 4, 2021):
@ycj1379 新添加了 GeoTrust Global CA,请等待 CI 运行 完成后 删除本地镜像重新拉起新镜像试试
@odemon0 commented on GitHub (Mar 4, 2021):
好的,感谢!
@mritd commented on GitHub (Mar 4, 2021):
关于日志 IP 显示问题:
默认情况下 bark-server IP 打印从 TCP 层获取 IP 地址,如果位于负载均衡器后面(例如 nginx、haproxy、caddy...) 请指定
--proxy-header选项来设置 bark-server 从哪个 HTTP 头中获取 IP 地址,以下是一个样例:bark-server 选项
Nginx 传递 X-Real-IP 头为远端 IP
@mritd commented on GitHub (Mar 4, 2021):
关于 Nignx 等负载均衡器配置,针对于个人网站或者说可以随便改的小型站点,推荐使用 https://ssl-config.mozilla.org/ 生成最佳配置,以满足搜索引擎 SEO 以及各种设备的安全性要求 😁
@odemon0 commented on GitHub (Mar 4, 2021):
已经可以正常推送,等迟点再折腾nginx的配置🥰