servers:linux:nginx:lets_encrypt
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| servers:linux:nginx:lets_encrypt [2026/10/22 06:58] – Sean Rhone | servers:linux:nginx:lets_encrypt [2026/10/24 20:39] (current) – [Settings] Sean Rhone | ||
|---|---|---|---|
| Line 42: | Line 42: | ||
| key-type = ' | key-type = ' | ||
| elliptic-curve = ' | elliptic-curve = ' | ||
| + | |||
| + | pre-hook = '/ | ||
| + | post-hook = '/ | ||
| domains = ' | domains = ' | ||
| Line 55: | Line 58: | ||
| sudo systemctl stop ' | sudo systemctl stop ' | ||
| - | ====== | + | ====== |
| - | ===== Renewal | + | ===== Service |
| - | | + | |
| < | < | ||
| - | #!/bin/sh | + | [Service] |
| + | Type=oneshot | ||
| - | cd '/tmp' | + | WorkingDirectory=/tmp |
| - | '/ | + | ExecStart='/ |
| - | + | ||
| - | '/ | + | |
| - | + | ||
| - | '/ | + | |
| # End</ | # End</ | ||
| - | ~/' | + | ===== Timer ===== |
| - | + | ||
| - | ====== cron ====== | + | |
| - | + | ||
| - | ===== Renewal | + | |
| * Weekly (Sunday) '' | * Weekly (Sunday) '' | ||
| - | sudo mkdir -p '/etc/cron.d' && sudo -e '/ | + | sudo -e '/etc/systemd/ |
| < | < | ||
| - | # | + | [Unit] |
| - | SHELL=/bin/sh | + | Description=Let's Encrypt Certificate Renewal |
| + | After=network-online.target | ||
| + | Wants=network-online.target | ||
| - | 0 7 * * sun root '/ | + | [Timer] |
| + | OnCalendar=Sun | ||
| + | Persistent=true | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| # End</ | # End</ | ||
| + | |||
| + | sudo systemctl start ' | ||
/srv/www/wiki/data/attic/servers/linux/nginx/lets_encrypt.1792666694.txt.gz · Last modified: by Sean Rhone