forked from finallycoffee/base
feat: add finallycoffee.base.lego role
This commit is contained in:
9
roles/lego/templates/lego.timer.j2
Normal file
9
roles/lego/templates/lego.timer.j2
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Run lego@{{ lego_instance}}.service
|
||||
|
||||
[Timer]
|
||||
OnCalendar={{ lego_systemd_timer_calendar }}
|
||||
Unit=lego@{{ lego_instance }}.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
13
roles/lego/templates/lego@.service.j2
Normal file
13
roles/lego/templates/lego@.service.j2
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Run lego (letsencrypt client in go)
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
EnvironmentFile={{ lego_base_path }}/%i.conf
|
||||
User=acme-%i
|
||||
Group=acme-%i
|
||||
ExecStart={{ lego_base_path }}/run.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
||||
DefaultInstance=default
|
Reference in New Issue
Block a user