Skip to content

Instantly share code, notes, and snippets.

View mtheofy's full-sized avatar
💭
I may be slow to respond.

Marcos mtheofy

💭
I may be slow to respond.
View GitHub Profile
@ysc3839
ysc3839 / README.md
Last active October 20, 2024 08:06
Systemd timer for lego

Systemd timer for lego

Place lego.service and lego.service in /etc/systemd/system. Place config in /var/lib/lego and nginx-example.com.sh in /var/lib/lego/scripts. You should modify config and nginx-example.com.sh. Finally execute sudo systemctl enable lego.timer.

Lego's files are stored in /var/lib/lego. You need to create this directory and use lego ... run to create acme account.

I'm using DNS challenge and didn't test HTTP challenge. Please tell me if it works.