免费、轻量!简单调用接口即可给自己的iPhone发送推送。依赖苹果APNs,及时、稳定、可靠。不会消耗设备的电量, 基于系统推送服务与推送扩展,APP本体并不需要运行。隐私安全,可以通过一些方式确保包含作者本人在内的所有人都无法窃取你的隐私。
github
https://github.com/Finb/bark-server
服务端
docker-compose.yml
version: '3.1'
services:
nginx:
image: nginx:1.23.3-alpine
container_name: nginx
ports:
- "443:443"
restart: always
links:
- bark
volumes:
- /data/nginx/conf/nginx.conf:/etc/nginx/nginx.conf
- /data/nginx/cert:/etc/nginx/cert/
- /etc/localtime:/etc/localtime
bark:
image: finab/bark-server
container_name: bark
restart: always
volumes:
- /data/bark:/data
ports:
- "8090:8080"
nginx.conf
server {
listen 443 ssl;
server_name _;
ssl_certificate /path/to/signed_cert_plus_intermediates;
ssl_certificate_key /path/to/private_key;
ssl_session_timeout 1d;
ssl_session_cache shared:MozSSL:10m;
ssl_session_tickets off;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_prefer_server_ciphers off;
add_header Strict-Transport-Security "max-age=63072000" always;
location / {
log_not_found on;
proxy_pass http://bark:8080/;
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}
}
iphone客户端
下载地址:https://apps.apple.com/cn/app/bark-%E7%BB%99%E4%BD%A0%E7%9A%84%E6%89%8B%E6%9C%BA%E5%8F%91%E6%8E%A8%E9%80%81/id1403753865
评论