Giter Site home page Giter Site logo

wedge's Introduction

Wedge is a general-purpose HTTP/2 web server that serves HTTPS by default.

Wedge is a fork of Caddy, with sponsor headers removed. The project is unofficial.

As a result of issue #2, references to Caddy in this documentation are being changed to reference the name "Wedge" instead.

---

Wedge is fast, easy to use, and makes you more productive.

Available for Windows, Mac, Linux, BSD, Solaris, and Android.

Building Wedge

go get github.com/WedgeServer/builds
go get github.com/WedgeServer/wedge/caddy

Then cd to wedge/caddy and go run build.go.

Menu

Features

  • Easy configuration with the configuration file
  • Automatic HTTPS on by default (via Let's Encrypt)
  • HTTP/2 by default
  • Virtual hosting so multiple sites just work
  • Experimental QUIC support for those that like speed
  • TLS session ticket key rotation for more secure connections
  • Extensible with plugins because a convenient web server is a helpful one
  • Runs anywhere with no external dependencies (not even libc)

Install

Follow the instructions above for building from source. Binaries will be available soon.

Quick Start

To serve static files from the current working directory, run:

wedge

The default port is 2015, so open your browser to http://localhost:2015.

Go from 0 to HTTPS in 5 seconds

If the binary has permission to bind to low ports and your domain name's DNS records point to the machine you're on:

wedge -host example.com

This command serves static files from the current directory over HTTPS. Certificates are automatically obtained and renewed for you!

Customizing your site

To customize how your site is served, create a file named Wedgefile by your site and paste this into it:

localhost

push
browse
websocket /echo cat
ext    .html
log    /var/log/access.log
proxy  /api 127.0.0.1:7005
header /api Access-Control-Allow-Origin *

When you run wedge in that directory, it will automatically find and use that Wedgefile.

This simple file enables server push (via Link headers), allows directory browsing (for folders without an index file), hosts a WebSocket echo server at /echo, serves clean URLs, logs requests to an access log, proxies all API requests to a backend on port 7005, and adds the coveted Access-Control-Allow-Origin: * header for all responses from the API.

Wow! Wedge can do a lot with just a few lines.

Doing more with Wedge

It is possible to host multiple sites and customise the web server using the configuration file.

Sites with qualifying hostnames are served over HTTPS by default.

Wedge has a command line interface. Run caddy -h to view basic help.

Running in Production

Wedge is production-ready if you find it to be a good fit for your site and workflow.

Running as root: We advise against this. You can still listen on ports < 1024 on Linux using setcap like so: sudo setcap cap_net_bind_service=+ep ./caddy

How you choose to run Wedge is up to you. Many users are satisfied with nohup wedge &. Others use screen. Users who need Wedge to come back up after reboots either do so in the script that caused the reboot, add a command to an init script, or configure a service with their OS.

If you have questions or concerns about Wedge' underlying crypto implementations, consult Go's crypto packages, starting with their documentation, then issues, then the code itself; as Wedge uses mainly those libraries.

Contributing

Please see our contributing guidelines for instructions.

We use GitHub issues and pull requests only for discussing bug reports and the development of specific changes.

Thanks for making Wedge -- and the Web -- better!

About the Project

Wedge was created following the announcement that sponsor headers would be added to HTTP responses, and official binaries would no longer be able to be used for commercial purposes.

See the HackerNews post.

wedge's People

Contributors

abiosoft avatar acmacalister avatar cez81 avatar definitelycarter avatar denbeke avatar djvdorp avatar elcore avatar ericdreeves avatar evermax avatar guilhermebr avatar hacdias avatar jungle-boogie avatar jupiter avatar lhecker avatar lk4d4 avatar makpoc avatar mark-kubacki avatar mholt avatar nemosupremo avatar pedronasser avatar peterhellberg avatar radim avatar thomas4019 avatar tobya avatar tpng avatar tw4452852 avatar weingart avatar wendigo avatar xenolf avatar zmb3 avatar

Watchers

 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.