Giter VIP home page Giter VIP logo

caddy-deb-opt's Introduction

caddy-deb-opt

This package is deprecated

Caddy releases now include deb packages, and Debian will likely soon start packaging Caddy.

About

This project builds a Caddy deb package for Debian and Ubuntu. The package installs Caddy to /opt/caddy/. It sets up Caddy to look for configuration (Caddyfiles) in /etc/opt/caddy/Caddyfile.d/*.conf and to store variable data like Let's Encrypt certificates in /var/opt/caddy/.

The package assumes you are going to configure Caddy though Caddyfiles, not the API. This is why it does not start Caddy with --resume.

The installation paths are in accordance with the Filesystem Hierarchy Standard. I like it because it prevents conflicts with offical packages and with software installed from source in /usr/local/.

Building and deployment

You can build the package and install it on your server from a Debian/Ubuntu machine with SSH access to the server. You will likely need a working knowledge of Debian or Ubuntu to succeed. Follow the steps.

1. Clone this repository on your developer/sysadmin machine.

2. Download Caddy 2.x for the server's CPU architecture. Copy the binary to debian/opt/caddy/bin/caddy.

3. Run the following shell command. Replace the values of SSH_SERVER and SSH_PORT with appropriate for the server you are deploying to.

sudo make deb && make deploy SSH_SERVER=example.com SSH_PORT=2020 && make clean

License

MIT.

caddy-deb-opt's People

Contributors

dbohdan avatar

Stargazers

 avatar

Watchers

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