Coder Social home page Coder Social logo

heroku-buildpack-caddy's Introduction

Heroku buildpack: Caddy

NOTE: probably don't use this-- it's currently heavily adapted for a specific use-case

This is a Heroku buildpack that runs Caddy.

Usage

Example usage:

$ ls
Caddyfile

$ heroku create --buildpack http://github.com/twistly/heroku-buildpack-caddy.git

$ git push heroku master
...
-----> Heroku receiving push
-----> Fetching custom buildpack
-----> Caddy app detected
-----> Found a Caddyfile

The buildpack will detect that your app has a Caddyfile in the root and start caddy with that config file. To build your Single page app, etc. please use another build pack before this one.

Buildpack Config Variables

The environment variable CADDY_VERSION overrides the default caddy version set by this buildpack (currently 2.2.1). See the releases page over at Caddy's GitHub repo for available versions.

Your app will need to touch /tmp/app-initialized when it's ready for traffic, similar to the nginx buildpack. See that buildpack also for how to define a Procfile with bin/start-caddy.

note: current bundled caddy build includes caddy-l4 and cloudflare :(

GOOS=linux ./xcaddy build v2.2.1 --with github.com/mholt/caddy-l4 --with github.com/caddy-dns/dnspod

heroku-buildpack-caddy's People

Contributors

uniphil avatar omgimalexis 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.