https://github.com/petrkle/le-cron
dehydrated cron script
https://github.com/petrkle/le-cron
cron-script dehydrated letsencrypt
Last synced: about 1 year ago
JSON representation
dehydrated cron script
- Host: GitHub
- URL: https://github.com/petrkle/le-cron
- Owner: petrkle
- Created: 2016-04-10T18:39:08.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-11-17T18:48:24.000Z (over 9 years ago)
- Last Synced: 2025-02-16T13:53:38.009Z (over 1 year ago)
- Topics: cron-script, dehydrated, letsencrypt
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# le-cron #
Cron script for [dehydrated](https://github.com/lukas2511/dehydrated)
Use with Nginx and Debian.
## Usage ##
$ git clone https://github.com/petrkle/le-cron.git
$ sudo le-cron/setup.sh
Then edit list of your domains in /home/letsencrypt/domains.txt, add
your email address to /home/letsencrypt/config.sh
Next step is add redirect and alias to your nginx configuration:
server {
listen *:80;
listen [::]:80;
server_name example.com www.example.com;
location / {
return 301 https://example.com$request_uri;
}
location /.well-known/acme-challenge {
alias /home/letsencrypt/www;
}
}
After nginx reload can run
$ sudo /home/letsencrypt/le-cron.sh
and finaly add new certs to nginx conf:
server {
listen 443 ssl spdy;
listen [::]:443 ssl spdy;
ssl on;
server_name example.com;
ssl_certificate /home/letsencrypt/certs/example.com/fullchain.pem;
ssl_certificate_key /home/letsencrypt/certs/example.com/privkey.pem;
}
## Requirements ##
* git
* sudo