Skip to content

Instantly share code, notes, and snippets.

@TyrfingMjolnir
Created October 23, 2017 13:23
Show Gist options
  • Save TyrfingMjolnir/80db4e28c8e40115f10d32eca3e24413 to your computer and use it in GitHub Desktop.
Save TyrfingMjolnir/80db4e28c8e40115f10d32eca3e24413 to your computer and use it in GitHub Desktop.
dehydrated Quickstart
cd /opt
git clone https://github.com/lukas2511/dehydrated
cd dehydrated
sudo mkdir -p /usr/local/etc/dehydrated
sudo mkdir -p /var/www/dehydrated
cp docs/examples/config /usr/local/etc/dehydrated
vim /usr/local/etc/dehydrated/config
echo "domain.tld mail.domain.tld www.domain.tld ws.domain.tld api.domain.tld" > /usr/local/etc/dehydrated/domains.txt
Make sure /var/www/dehydrated is exposed publicly as this is the temp folder used for validation; \
not this folder should be for domain.tld on port 80, not www.domain.tld
Run this once: /opt/dehydrated/dehydrated --register --accept-terms
Run this one once a month or once a day in crontab its likes: /opt/dehydrated/dehydrated -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment