Retain Caddy file capability at ingress boundary
This commit is contained in:
@@ -388,6 +388,8 @@ def main() -> int:
|
||||
"no-new-privileges",
|
||||
"--cap-drop",
|
||||
"ALL",
|
||||
"--cap-add",
|
||||
"NET_BIND_SERVICE",
|
||||
"--publish",
|
||||
f"127.0.0.1:{requested_http_port}:8080/tcp",
|
||||
"--publish",
|
||||
|
||||
@@ -627,6 +627,7 @@ def render_compose(spec: InstallationSpec) -> dict[str, object]:
|
||||
"tmpfs": ["/tmp:rw,noexec,nosuid,size=64m"],
|
||||
"security_opt": ["no-new-privileges:true"],
|
||||
"cap_drop": ["ALL"],
|
||||
"cap_add": ["NET_BIND_SERVICE"],
|
||||
"volumes": [
|
||||
f"./{CADDY_CONFIG_FILENAME}:/etc/caddy/Caddyfile:ro",
|
||||
"caddy-data:/data",
|
||||
|
||||
Reference in New Issue
Block a user