iOS uPic自定义配置上传lsky-pro兰空图床

折腾了下iOS端的uPic,让移动端也能方便的上传图片文件到图床

具体配置

API URL

lsky后台-API确认具体路径
上传路径通常是/api/v1/upload

Method

POST

file Field

file

上传文件时,文件在请求body里的字段名

Result Path

uPic Mac的使用文档,https://blog.svend.cc/upic/tutorials/custom/#URL-获取规则

["data","links","url"]

上传成功后返回的字段,这里配置的是图片的URL,也可以根据需要配置成markdown图片URL

headers配置

token

在token前加上Bearer 2|

折腾: 管理音乐库

在iTunes、Bandcamp、Mora等网站购买本地数字音乐
哪里可以买到真正的无损音源?(或者接近无损)?

调研

调研list

Subsonic

Subsonic arm ffmpeg decode error

arm replace ffmpeg

sudo apt-get install ffmpeg
sudo rm /var/subsonic/transcode/ffmpeg
sudo ln -s /usr/bin/ffmpeg /var/subsonic/transcode/ffmpeg

systemctl restart subsonic

Airsonic

docker deploy

docker run \
  -v data:/airsonic/data \
  -v music:/airsonic/music \
  -v playlists:/airsonic/playlists \
  -v podcasts:/airsonic/podcasts \
  -p 4040:4040 \
  -d \
  airsonic/airsonic

对比

  1. 费用,Airsonic免费;Subsonic有一个付费订阅($12/y, $99/lifetime),主要包括Web端使用,以及一些无用的功能(自定义域名balabala)
  2. Airsonic支持排除路径、文件链接(可以排除部分专辑目录) Airsonic exclude&ignore files

todo

  • koel 看起来不错,需实测
  • jellyfin、plex 只用来听歌没必要,需实测
  • ampache 对比下sonic,需实测
  • mopidyfunkwhale,需实测

screenshots

Subsonic

Subsonic

Subsonic lyrics

Subsonic lyrics

docker asf挂卡/命令/farm/command

install docker

install docker
install docker-compose

安装asf

ASF Github

创建asf配置文件目录,config文件写到该目录, 在线生成config

IPC

配置文件asf/IPC.config

{
  "Kestrel": {
    "Endpoints": {
      "HTTP": {
        "Url": "http://*:1242"
      }
    }
  }
}

nginx代理IPC

https://github.com/JustArchiNET/ArchiSteamFarm/wiki/IPC#can-i-use-asfs-ipc-behind-a-reverse-proxy-such-as-apache-or-nginx

运行docker

docker pull justarchi/archisteamfarm
docker run -it -p 1242:1242 -v /path_2_local_asf_folder/asf:/app/config justarchi/archisteamfarm -d

asf command

https://github.com/JustArchiNET/ArchiSteamFarm/wiki/Commands

手机令牌二次验证

ASF.json中允许headless命令

input chyi TwoFactorAuthentication xxxxx