nn200433 / snapdrop

Modify from Snapdrop by RobinLinus,just added Internet sharing.

Home Page:https://www.fairysoft.net/post/66.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

snapdrop

HomePage
DEMO
Modify from Snapdrop and Node-Snapdrop. Just Added Internet support and fixed the bug with Firefox receiving files.

How to run

Download the repository in a folder, cd it, install all dependencies with npm i and use this command: node index.js.

Run within your ip

Use this command, instead, to run not locally but in your public "sharable" ip: node index.js public.
Make sure to check your ip address using your OS command.

How to use

By default, it is used inside the LAN.
Users who are not in the same LAN can establish a connection by entering the same room name.
Enter a blank room name to return to LAN mode.

How to use Docker

docker:

docker run -itd --name=snapdrop --net=host --restart=unless-stopped -e PORT=5000 -e OPTIONS=public nn200433/snapdrop:latest

docker-compose:

version: '3'
services:
  snapdrop:
    image: nn200433/snapdrop:latest
    container_name: snapdrop
    restart: unless-stopped
    network_mode: host
    environment: 
      # 默认3000
      - PORT=5000
      - TZ=Asia/Shanghai
      # 默认内网
      - OPTIONS=public

About

Modify from Snapdrop by RobinLinus,just added Internet sharing.

https://www.fairysoft.net/post/66.html

License:GNU General Public License v3.0


Languages

Language:JavaScript 74.9%Language:HTML 13.3%Language:CSS 10.8%Language:Dockerfile 0.8%Language:Shell 0.2%