Giter VIP home page Giter VIP logo

build-caddy's Introduction

build-caddy

Builds caddy with the specified plugins from plugins.txt.

If you want to support caddy, consider buying a license or sponsoring their project!

I am in no way associated or affiliated with the original project.

requirements

  • go > 1.8
  • git

usage

  1. put url's to the wanted plugin repos in plugins.txt. THE FILE MUST END WITH AN EMPTY LINE
  2. edit the line CADDY_VERSION="v0.10.9" to your wanted version (git tag) in build.sh
  3. execute ./build.sh
  4. the built caddy binary resides in ./build

additional info

  • execute sudo setcap "cap_net_bind_service=+ep" /opt/caddy/caddy on the target system to make caddy executable by non-root users

  • execute adduser --disabled-password --disabled-login caddy (on debian and friends) to create a non-root user for caddy

  • i use this systemd unit file to run caddy

    [Unit]
    Description=Caddy HTTP/2 web server
    Documentation=https://caddyserver.com/docs
    After=network.target
    
    [Service]
    User=caddy
    Group=caddy
    LimitNOFILE=8192
    Environment=STNORESTART=yes
    ExecStart=/opt/caddy/caddy -agree=true -conf=/etc/caddy
    ExecReload=/bin/kill -USR1 $MAINPID
    Restart=on-failure
    
    [Install]
    WantedBy=multi-user.target
    

build-caddy's People

Contributors

erdii avatar

Stargazers

 avatar

Watchers

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