Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjarksaul/909ea6dfa3673821ea3010790d931bd7 to your computer and use it in GitHub Desktop.
Save tjarksaul/909ea6dfa3673821ea3010790d931bd7 to your computer and use it in GitHub Desktop.
Prepare macOS server for letsencryot
# file path: /Library/Server/Web/Config/Proxy/apache_serviceproxy_customsites_letsencrypt.conf
ProxyPass /.well-known/acme-challenge http://127.0.0.1:34543/.well-known/acme-challenge
ProxyPassReverse /.well-known/acme-challenge http://127.0.0.1:34543/.well-known/acme-challenge
sudo launchctl stop com.apple.serviceproxy
sudo launchctl start com.apple.serviceproxy
sudo ./dehydrated -c -x -f ./config -k ./hook.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment