diff --git a/appinfo.yml b/appinfo.yml index 81af83b..f0c123f 100644 --- a/appinfo.yml +++ b/appinfo.yml @@ -1,9 +1,15 @@ -mainunit: nginx.service -mainunitfile: nginx.service.j2 +version: 3 +mainunit: nginx +enableunits: + - nginx.service templatefiles: - src: nginx.conf.j2 dest: ~/nginx.conf -backuptype: none + - src: nginx.service.j2 + dest: ~/.config/systemd/user/nginx.service +plugins: + - type: builtin + name: backups_none configdefinition: "$id": "nginx config" "$schema": "http://json-schema.org/draft-07/schema#" diff --git a/nginx.service.j2 b/nginx.service.j2 index 63a55f9..935ac67 100644 --- a/nginx.service.j2 +++ b/nginx.service.j2 @@ -1,6 +1,7 @@ [Unit] Description=Podman Compose based service After=network.target +PartOf={{ mainunit }} # Nginx is not started with podman compose # We start it on the host network, so we can access the ports exposed on localhost @@ -19,4 +20,4 @@ Restart=always WorkingDirectory={{ homedir }} [Install] -WantedBy=default.target +WantedBy={{ mainunit }}