Add sudo rules for reudy to allow NOPASSWD systemctl reload for caddy and update panelctl.sh to use docker.io for image reference
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
parent
a27b7de7fa
commit
36664f243e
2 changed files with 12 additions and 1 deletions
|
|
@ -80,6 +80,17 @@
|
|||
};
|
||||
|
||||
security.sudo.wheelNeedsPassword = true;
|
||||
security.sudo.extraRules = [
|
||||
{
|
||||
users = [ "reudy" ];
|
||||
commands = [
|
||||
{
|
||||
command = "${pkgs.systemd}/bin/systemctl reload caddy";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
services.openssh = {
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ write_default_compose() {
|
|||
cat >"${stack_dir}/compose.yaml" <<EOF
|
||||
services:
|
||||
app:
|
||||
image: traefik/whoami:latest
|
||||
image: docker.io/traefik/whoami:latest
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:${port}:80"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue