浏览代码

serve .well-known directory to support automatic certificate renewal with certbot

Pi 1 年之前
父节点
当前提交
dea578e794
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. 1 0
      docker-compose.yml
  2. 2 0
      nginx.conf

+ 1 - 0
docker-compose.yml

@@ -9,6 +9,7 @@ services:
     volumes:
       - ./feed:/usr/share/nginx/html/feed
       - ./media:/usr/share/nginx/html/media
+      - ./.well-known:/usr/share/nginx/html/.well-known
     networks:
       - traefik
 

+ 2 - 0
nginx.conf

@@ -23,5 +23,7 @@ http {
         ## override header (more like send custom header using nginx) #
         add_header x-robots-tag "noindex, follow";
     }
+    location /.well-known/ {
+    }
   }
 }