[discourse-web/flathub] Handle letsencrypt challenges



commit b0c72fd7f11fd1efe8ed5343dc0c90a49d98302a
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Tue Oct 13 13:45:38 2020 +0200

    Handle letsencrypt challenges

 config/discourse-nginx.conf | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/config/discourse-nginx.conf b/config/discourse-nginx.conf
index 929da0e..131faa3 100644
--- a/config/discourse-nginx.conf
+++ b/config/discourse-nginx.conf
@@ -50,6 +50,10 @@ server {
   # use dates, it solves the problem fine even cross server
   etag off;
 
+  location /.well-known/acme-challenge {
+    return 301 https://letsencrypt.gnome.org$request_uri;
+  }
+
   # prevent direct download of backups
   location ^~ /backups/ {
     internal;


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