Files

15 lines
739 B
Plaintext
Raw Permalink Normal View History

2026-11-20 15:16:41 +02:00
# Example sudoers entry for `webserver.mode = "ssh"` (managing nginx on a
# remote Proxmox host from another machine).
#
# WARNING: `tee`/`mv` into /etc as root makes this account root-equivalent.
# Running proxdomain locally on the Proxmox host (mode = "local", root systemd
# unit) avoids handing out that much power. Prefer that unless you have a
# specific reason to manage the host remotely.
#
# Install with: visudo -f /etc/sudoers.d/proxdomain
proxdomain ALL=(root) NOPASSWD: \
/usr/bin/mkdir, /usr/bin/tee, /usr/bin/chmod, /usr/bin/mv, /usr/bin/rm, \
/usr/bin/test, /usr/bin/cat, /usr/bin/grep, \
/usr/bin/nginx, /usr/bin/caddy, /usr/bin/certbot, \
/usr/bin/systemctl reload nginx, /usr/bin/systemctl reload caddy