Skip to content

Add a systemd socket unit and adjust AmbientCapabilities= #124

@eriksjolund

Description

@eriksjolund

Now that Caddy supports socket activation adjust the systemd service examples

init/caddy.service
init/caddy-api.service

to make use of a socket unit.

I haven't verified this but I'm speculating that we could remove the line

AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE

CAP_NET_ADMIN was added in

There is a systemd directive ReceiveBuffer that looks useful:

https://www.freedesktop.org/software/systemd/man/latest/systemd.socket.html#ReceiveBuffer=

(I don't know if the systemd directive ReceiveBuffer= would provide enough functionality to justify the removal of CAP_NET_ADMIN)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions