Package Details: caddy 1.0.0-1

Git Clone URL: https://aur.archlinux.org/caddy.git (read-only)
Package Base: caddy
Description: HTTP/2 Web Server with Automatic HTTPS
Upstream URL: https://caddyserver.com
Licenses: Apache
Submitter: crvv
Maintainer: crvv
Last Packager: crvv
Votes: 36
Popularity: 2.097871
First Submitted: 2016-09-22 04:09
Last Updated: 2019-04-25 09:48

Pinned Comments

crvv commented on 2019-03-10 12:18

@Strykar There is an array at the end of PKGBUILD file, which contains all plugins. You can choose the plugins you want by uncommenting lines in it.

Latest Comments

« First ‹ Previous 1 2 3 4

carlwgeorge commented on 2017-05-15 23:38

Can I be added as a co-maintainer? I would like to make a few improvements to this package. Check out what I've done with caddy-bin to see the implementation of some of these.

* build from GitHub tarball, not git clone
* build using `go build` directly, not build.bash
* run as the existing http user
* store tls things in /var/lib/caddy (created by a tmpfiles config)
* include a default example page (index.html and svg image)
* include a default Caddyfile
* run appropriate systemctl commands in caddy.install

carlwgeorge commented on 2017-05-13 23:31

Both apache and nginx Arch packages use the existing "http" user. Why create a separate "www-data" user?

nelsonc commented on 2017-05-06 09:42

Neat potential feature: include a script that generates a patch to include plugins; so one might do `./plugins.sh http.filemanager http.git` before running the build and the filemanager and git plugins would be included. (It's really quite easy to do; I've whipped up something effective in about 10 min.)

carlwgeorge commented on 2016-12-18 17:33

This fails to build.

```
/startdir/PKGBUILD: line 18: ../setcap.patch: No such file or directory
```

The file setcap.patch isn't listed in the sources array.

```
-source=("git+https://github.com/mholt/caddy")
-md5sums=('SKIP')
+source=("git+https://github.com/mholt/caddy"
+ "setcap.patch")
+md5sums=('SKIP'
+ '1a59df0968f780b3689a840a3ced5db6')
```

Once you add it, it will be inside $srcdir during the build, so you need to fix the path on the patch command.

```
- patch -Np1 < ../setcap.patch
+ patch -Np1 < setcap.patch
```

Also, don't install things to /usr/local/bin, that is reserved for local use.

```
- install -Dm755 "$builddir/caddy/caddy" "${pkgdir}/usr/local/bin/caddy"
+ install -Dm755 "$builddir/caddy/caddy" "${pkgdir}/usr/bin/caddy"
```

Luchs commented on 2016-10-05 10:30

`makepkg -e` fails here as $GOPATH is only set in prepare(). Can you please add `export GOPATH="$srcdir/build"` to build() as well?