1
0
forked from finallycoffee/base
finallycoffee.base/roles/lego/templates/lego@.service.j2

15 lines
320 B
Plaintext
Raw Permalink Normal View History

2024-05-19 18:40:43 +00:00
[Unit]
Description=Run lego (letsencrypt client in go)
[Service]
Type=oneshot
EnvironmentFile={{ lego_base_path }}/%i.conf
User={{ lego_systemd_user }}
Group={{ lego_systemd_group }}
2024-05-19 18:40:43 +00:00
ExecStart={{ lego_base_path }}/run.sh
AmbientCapabilities=CAP_NET_BIND_SERVICE
2024-05-19 18:40:43 +00:00
[Install]
WantedBy=basic.target
DefaultInstance=default