[Unit]Description=Socket for Cockpit Web Service https instance %IDocumentation=man:cockpit-ws(8)BindsTo=cockpit.service# clean up the socket after the service exits, to prevent fd leak# this also effectively prevents a DoS by starting arbitrarily many sockets, as# the services are resource-limited by system-cockpithttps.sliceBindsTo=cockpit-wsinstance-https@%i.service# ensure our DynamicUser existsRequires=cockpit-wsinstance-socket-user.serviceAfter=cockpit-wsinstance-socket-user.service[Socket]ListenStream=/run/cockpit/wsinstance/https@%i.sockSocketUser=rootSocketGroup=cockpit-wsinstance-socketSocketMode=0660RemoveOnStop=yes