Package Details: caddy2 2.2.0-1

Git Clone URL: https://aur.archlinux.org/caddy2.git (read-only, click to copy)
Package Base: caddy2
Description: Fast web server with automatic HTTPS
Upstream URL: https://caddyserver.com
Keywords: webserver
Licenses: Apache
Conflicts: caddy
Provides: caddy
Submitter: Poscat
Maintainer: Arisu
Last Packager: Arisu
Votes: 23
Popularity: 4.56
First Submitted: 2019-10-21 13:43
Last Updated: 2020-09-24 18:41

Pinned Comments

Arisu commented on 2020-10-14 08:13

v2.2.1 pending https://github.com/caddyserver/caddy/issues/3797

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

venator85 commented on 2020-08-12 11:51

After installing and starting caddy.service it seems that Caddy is not listening on any port. I'm using the default config file in the package. Any hints?

Also, I got the following error: {"level":"error","ts":1597232675.2930715,"msg":"unable to autosave config","file":"/etc/caddy/autosave.json","error":"open /etc/caddy/autosave.json: read-only file system"}

JayGatsby commented on 2020-07-28 22:11

I looked at that and tried to update my keys. Didn’t want to import the key manually without knowing it was safe.

Arisu commented on 2020-07-27 10:22

@JayGatsby have you tried https://wiki.archlinux.org/index.php/GnuPG#Use_a_keyserver ?

JayGatsby commented on 2020-07-26 12:25

getting this error when trying to install.

gpg: keyserver receive failed: General error problem importing keys

athei commented on 2020-07-15 21:34

Yes it now builds for me. Many thanks!

mqs commented on 2020-07-15 13:10

Sorry, I didn't get notifications so I didn't look here again. Thank you! I have no issues left :)

Arisu commented on 2020-07-09 12:59

I pushed said update. @athei there's a great chance this will fix your issue.

Important changes:

  • Now uses custom caddy user instead of http

  • Hardened systemd unit file

  • Hardened go build flags

jettscythe commented on 2020-07-04 23:16

Just popped in to say i'm having the exact same issue as @athei Caddy works fine, I just can't update it due to these failures.

Arisu commented on 2020-07-02 14:15

Hey @mqs, thanks for your comment. Unfortunately I didn't see your edit soon enough, so I actually made that PR (hope you won't have spent too much time on that).

Anyway, before merging that, I would love to have your input and if possible that you review (and approve and/or comment) the changes I made. Anybody is welcome to do that btw.

https://github.com/ArisuOngaku/aur-caddy/pull/1

mqs commented on 2020-07-01 21:43

Some notes/questions about your .install file:

  1. I think the systemctl --quiet daemon-reload are probably unnecessary, as pacman/libalpm already has hooks which will reload all daemons if any changes were made to the relevant directories(see /usr/share/libalpm/hooks/)

  2. What is systemd-tmpfiles --create caddy.service for? I think that this is also unnecessary(because of libalpm hooks), and even if it isn't, shouldn't this take caddy.tmpfiles (or caddy.conf) as the argument? (I'm just wondering, since I didn't use this command before)

Some more comments: /srv/http shouldn't be in the ReadWritePaths of the service file, since they won't be modified by caddy, also: did you try the flags proposed in the go packaging guidelines? This could solve the permission problem, which could happen because the test tries to write in go's pkg directory, which is read-only (even to the owner) by default.

Edit: I actually read the comments below and I'll try to make a PR.