GithubHelp home page GithubHelp logo

serve's Introduction

serve

This is meant to be a utility to ease the process of sharing files between computers/phones/tablets that are in the same network

Features

  • Directory listing to download files
  • Upload files to the shared directory
  • Detects Avahi installation and gives the zeroconf (*.local) domain
  • Finds local network ip address
  • Supports TLS

Installation:

Get the tool:

go get https://github.com/empijei/serve

Setup TLS:

bash $GOPATH/src/github.com/empijei/serve/generate-certificate.sh

Follow the wizard.

WARNING: If you want to use zeroconf hostnames (*.local) remeber to put that hostname as name for your certificate.

Usage:

Usage of serve:
  -f string
    	The folder to serve (default PWD)
  -p string
    	The port to run on (default "8080")
  -s	Use TLS
  -u string
    	The webpath where the upload form is hosted (default "upload/")
  -w string
    	The root webpath (default "/")
  -h prints this help

Example to share the ~/share folder on a computer named icarus

╭─ (OK) rob@icarus:~
╰─$ serve
Local ip address:172.20.6.46
Serving local folder /home/rob/share/ on "http://icarus.local:8080/"
File Upload form is available at "http://icarus.local:8080/upload/"
Press Control+C to stop

serve's People

Contributors

empijei avatar silverweed avatar

Stargazers

Anna Bernardi avatar

Watchers

James Cloos avatar  avatar

serve's Issues

Does not properly detect ip

The IP address outputted in console is not picked in a meaningful way. The tool should detect the interface that has a path to the internet. If any are available, show their IP addresses

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.