Skip to content

A script that downloads and builds caddy with some plugins so one can use it for professional purposes. This conforms to the license of caddy.

License

Notifications You must be signed in to change notification settings

erdii/build-caddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
    

About

A script that downloads and builds caddy with some plugins so one can use it for professional purposes. This conforms to the license of caddy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages