nginx.well-known.conf 485 B

123456789101112131415161718
  1. ## https://community.letsencrypt.org/t/how-to-nginx-configuration-to-enable-acme-challenge-support-on-all-http-virtual-hosts/5622
  2. location ^~ /.well-known/acme-challenge/ {
  3. allow all;
  4. default_type "text/plain";
  5. root /var/www/certbot;
  6. }
  7. location = /.well-known/acme-challenge/ {
  8. return 404;
  9. }
  10. ## for gpg
  11. location ^~ /.well-known/openpgpkey/ {
  12. default_type application/octet-stream;
  13. add_header Access-Control-Allow-Origin * always;
  14. root /var/www/gpg-wkd;
  15. }