Package Details: caddy 1.0.0-2

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: 1.957948
First Submitted: 2016-09-22 04:09
Last Updated: 2019-05-24 07:49

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 Next › Last »

crvv commented on 2019-03-10 12:16

@pbrenna The previous caddy.service wrote "After=network-online.target" and this is wrong. I updated the line to be "After=network-online.target" I think this can fix the problem. Can you confirm that? Thanks.

Strykar commented on 2019-03-10 10:26

Does this not include DNS providers? How do I add a DNS provider, just drop googlecloud.go from https://github.com/caddyserver/dnsproviders/tree/master/googlecloud somewhere?

pbrenna commented on 2019-03-01 09:43

Hi! The official caddy.service uses:

[Unit]
After=network-online.target
Wants=network-online.target systemd-networkd-wait-online.service

This is important for systems where NetworkManager is in charge of setting up the newtork, as bad as this may sound. I suggest that the caddy.service provided by this package should do the same (on such systems, caddy starts when the network is unreachable and does not work until manually restarted).

crvv commented on 2019-01-17 11:09

@skynewz

In caddy.service, there is "ProtectSystem=strict". So "srv/http" is not writable. You can add that path into "ReadWritePaths" in caddy.service

Anonymous comment on 2018-12-02 14:25

Hi!

I have an issue when starting with systemd. I use git plugin in my Caddyfile. I have : ● caddy.service - Caddy HTTP/2 web server Loaded: loaded (/usr/lib/systemd/system/caddy.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sun 2018-12-02 15:02:06 CET; 9min ago Docs: https://caddyserver.com/docs Process: 6326 ExecStart=/usr/bin/caddy -log stdout -agree -conf /etc/caddy/caddy.conf -root /tmp (code=exited, status=1/FAILURE) Main PID: 6326 (code=exited, status=1/FAILURE)

Dec 02 15:02:06 aloesia caddy[6326]: error: cannot open .git/FETCH_HEAD: Read-only file system Dec 02 15:02:06 aloesia caddy[6326]: 2018/12/02 15:02:06 exit status 1 Dec 02 15:02:06 aloesia caddy[6326]: touch: cannot touch '/srv/http/.ssh/known_hosts': Read-only file system Dec 02 15:02:06 aloesia caddy[6326]: /tmp/caddy491536462: line 5: /srv/http/.ssh/tmp_hosts: Read-only file system Dec 02 15:02:06 aloesia caddy[6326]: cat: /srv/http/.ssh/tmp_hosts: No such file or directory Dec 02 15:02:06 aloesia caddy[6326]: error: cannot open .git/FETCH_HEAD: Read-only file system Dec 02 15:02:06 aloesia caddy[6326]: 2018/12/02 15:02:06 exit status 1 Dec 02 15:02:06 aloesia caddy[6326]: 2018/12/02 15:02:06 exit status 1 Dec 02 15:02:06 aloesia systemd[1]: caddy.service: Main process exited, code=exited, status=1/FAILURE Dec 02 15:02:06 aloesia systemd[1]: caddy.service: Failed with result 'exit-code'.

And the caddy.service is not modified. Someone have an idea ?

hendry commented on 2018-09-08 13:26

UPDATE: Sorry for the noise, a reboot sorted it out.

On my rpi, my caddy has stopped working. I see:

Sep 08 21:22:46 study systemd[4122]: caddy.service: Failed to determine user credentials: No such process Sep 08 21:22:46 study systemd[4122]: caddy.service: Failed at step USER spawning /usr/bin/caddy: No such process

In the logs. Ummm, /usr/bin/caddy is there so I am very confused.

Main process exited, code=exited, status=217/USER

axionl commented on 2018-05-25 00:59

@crvv Yep. So, I hope you can give this default environment variable on PKGBUILD. Because I wanna add this package to archlinuxcn repository and when you building the package on the container (extra-x86_64-build from devtools) , the namcap checking will return an error and the package cannot be published.

crvv commented on 2018-05-24 05:47

@axionl Do you try to run makepkg on a machine without libc? I think this is impossible because pacman depends on glibc. If you want a binary which doesn't depend on libc, you can add export CGO_ENABLED=0 in PKGBUILD. And this is the default when you do cross compiling. glibc donsn't appear in dependencies of other packages (like https://www.archlinux.org/packages/extra/x86_64/go/)

axionl commented on 2018-05-23 14:15

missing a 'glibc' as depend?

ReDemoNBR commented on 2018-04-25 03:25

Builds and works nicely in my Raspberry Pi Zero W, which is arch armv6h.

I think it is safe to add it to the list of archs :)