Skip to content

Instantly share code, notes, and snippets.

@bear
Created April 20, 2016 16:40
Show Gist options
  • Save bear/bd9761d3ec8127183238de41708230e1 to your computer and use it in GitHub Desktop.
Save bear/bd9761d3ec8127183238de41708230e1 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name bear.im;
location '/.well-known/acme-challenge' {
default_type "text/plain";
root /tmp/letsencrypt-auto;
}
location / {
return 301 https://$server_name$request_uri;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment