nginx-certbot/nginx_conf.d/certbot.conf

16 lines
407 B
Plaintext
Raw Normal View History

server {
# Listen on plain old HTTP
2018-09-13 15:52:57 +00:00
listen 80 default_server;
# Pass this particular URL off to certbot, to authenticate HTTPS certificates
location '/.well-known/acme-challenge' {
default_type "text/plain";
2017-01-25 04:43:56 +00:00
proxy_pass http://localhost:1337;
}
# Everything else gets shunted over to HTTPS
location / {
return 301 https://$http_host$request_uri;
}
}