自建SnapDrop类似Airdrop

date
May 12, 2022
slug
newservice-snapdrop-airdrop
status
Published
summary
新服务 Airdrop
tags
service
type
Post
URL
notion image

Summary

步骤

docker compose

mkdir -p /data/snapdrop_airdrop && cd /data/snapdrop_airdrop

cat > docker-compose.yml <<EOF
version: "2.1"
services:
  snapdrop:
    image: lscr.io/linuxserver/snapdrop
    container_name: snapdrop_airdrop
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Asia/Hong_Kong
    volumes:
      - ./config:/config
    ports:
      - 18480:80
      - 18443:443
    restart: unless-stopped
EOF

docker-compose down; docker-compose up -d; sleep 1s; docker-compose logs -f

在nginx的反代当中要加上


      proxy_pass http://127.0.0.1:18480;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "upgrade";
      proxy_set_header Host $http_host;
notion image
notion image

验证

 

© Ying Bun 2021 - 2022