[blogs-web/fpm] Handle letsencrypt challenges



commit 46d689b1790df9baf6980d5e6844f6a8309e3152
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Tue Oct 13 13:39:22 2020 +0200

    Handle letsencrypt challenges

 nginx.conf | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/nginx.conf b/nginx.conf
index 198b36c..b4cb227 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -121,6 +121,10 @@ http {
             fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
         }
     
+        location /.well-known/acme-challenge {
+            return 301 https://letsencrypt.gnome.org$request_uri;
+        }
+
         location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
             expires max;
             log_not_found off;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]