GithubHelp home page GithubHelp logo

silverweed / serve Goto Github PK

View Code? Open in Web Editor NEW

This project forked from empijei/serve

0.0 2.0 0.0 24 KB

Simple directory listing with download and upload functionality

License: GNU General Public License v3.0

Shell 3.36% Go 96.64%

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 "xyzzy/")
  -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/xyzzy/"
Press Control+C to stop

serve's People

Contributors

empijei avatar silverweed avatar

Watchers

James Cloos avatar  avatar

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.