Self-built iOS message push service Bark

insert image description here

After Lao Su's DSM6.17system was restored, he found that some packages were missing. When installing phpMyAdminthe packages, it was displayed that thePHP7.4

insert image description here

But searching in the suite yields onlyPHP7.3

insert image description here

Downloaded the minimum from https://archive.synology.cn/download/Package/PHP7.47.4.9-0003

insert image description here

When installing manually, it actually shows DSM6.17that it is not supported

insert image description here

Lao Su didn't want to upgrade, so he flipped through the screenshots wallabagfrom

insert image description here

Obviously phpMyAdmin, you don't have to PHP7.4upgrade to use it, so why not try the phpMyAdmindowngraded version. next4.9.2-0181

insert image description here

This time it showed that it was only needed PHP5.6, so I downloaded it again 5.6.20-0023, and finally got it done, now I can sleep in during the holiday

insert image description here

I wish you a healthy Dragon Boat Festival~


The push plan that netizens Frank Yangneed iphone; someone recommended it a long time ago, but Lao Su is Androida user , and this time he borrowed a mobile phone to make a fuss;

insert image description here

What is Bark?

Barkis an iOSapplication that allows you to push custom notifications to your iPhone. BarkRelying on Apple APNswill not consume the power of the device. Based on the system push service and push extension, APPthe main body does not need to run, and it is timely, stable and reliable.

Install

Install it in Docker mode on Synology.

Search in the registry bark-server, select the first one finab/bark-server, version selection latest.

At the time of writing this article, latestthe version corresponds to v2.1.5;

insert image description here

roll

Inside dockerthe folder , create a new folder barkwith a subfolder inside itdata

folder mount path illustrate
docker/bark/data /data store data

insert image description here

port

It is fine if the local port does not conflict. If you are not sure, you can check it with the command

# 查看端口占用
netstat -tunlp | grep 端口号
local port container port
8054 8080

insert image description here

command line installation

If you are familiar with the command line, it may be docker clifaster

# 新建文件夹 bark 和 子目录
mkdir -p /volume2/docker/bark/data

# 进入 bark 目录
cd /volume2/docker/bark

# 运行容器
docker run -d \
   --restart unless-stopped \
   --name bark \
   -p 8054:8080 \
   -v $(pwd)/data:/data \
   finab/bark-server

You can also use docker-composethe installation , save the following content as docker-compose.ymla file

version: '3'

services:
  bark-server:
    image: finab/bark-server
    container_name: bark-server
    restart: unless-stopped
    ports:
      - 8054:8080
    volumes:
      - ./data:/data

Then execute the following command

# 新建文件夹 bark 和 子目录
mkdir -p /volume2/docker/bark/data

# 进入 bark 目录
cd /volume2/docker/bark

# 将 docker-compose.yml 放入当前目录

# 一键启动
docker-compose up -d

run

Enter in the browser http://群晖IP:8054/ping, if it returns, code:200it should mean that the construction is successful

insert image description here

reverse proxy

This step is not necessary, it depends on your application scenario

Lao Su's Tencent small host has expired, and the default Cloudflared + npmmethod . If you don't understand it, you can read the previous article

Article Portal:

Just set the host, SSLno need to set

insert image description here

iOS

APP StoreFound in Bark, address: https://apps.apple.com/cn/app/bark-customed-notifications/id1403753865

Open APP, it points to the official server by default api.day.app, you need to click +the sign to add the private server we built earlier

insert image description here

Fill in your server or domain name APPatIP

insert image description here

After the addition is successful, you need to 允许send a message to notify

insert image description here

Click Register Device in the middle

insert image description here

The sending format of different content will be displayed

#  推送内容
https://bark.laosu.ml/T4PZSXypARjLfFY6xycY7G/这里改成你自己的推送内容

# 推送标题
https://bark.laosu.ml/T4PZSXypARjLfFY6xycY7G/推送标题/这里改成你自己的推送内容

insert image description here

The string of characters after the domain name T4PZSXypARjLfFY6xycY7Gis the unique code used to identify the device

Then you can use the command line, APIdebugging tools, or chromeplugins to iphonesend messages to

Chrome

Plug-in download address: https://chrome.google.com/webstore/detail/bark/pmlkbdbpglkgbgopghdcmohdcmladeii

insert image description here

After the installation is complete, click the plug-in icon on the browser, a prompt will pop up

insert image description here

Default Push ContentRefers to the content pushed by default, Clipboardthe content in the clipboard, Current page URLand the address of the currently opened web page

find the following New device push URL

insert image description here

Fill in the address obtained earlier,https://bark.laosu.ml/T4PZSXypARjLfFY6xycY7G/

If you have more than one iphone, Aliasfill it in to distinguish different mobile phones

insert image description here

After selecting the content on the web page, right click to findPush To Device

insert image description here

The mobile phone will receive the sent message

insert image description here

Multiple words can be expanded

insert image description here

reference documents

Finb/bark-server: Backend of Bark
address: https://github.com/Finb/bark-server

Finb/Bark: Bark is an iOS App which allows you to push custom notifications to your iPhone
地址:https://github.com/Finb/Bark

Bark use document
address: https://bark.day.app/

Bark server deployment document | Fin
address: https://day.app/2018/06/bark-server-document/

Guess you like

Origin blog.csdn.net/wbsu2004/article/details/131320606