浏览代码

Merge pull request #2171 from bt90/patch-1

Map 443/udp to allow HTTP3
yosifkit 3 年之前
父节点
当前提交
8fda8ed650
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      caddy/content.md

+ 2 - 1
caddy/content.md

@@ -49,7 +49,7 @@ $ docker run -d -p 80:80 \
 The default `Caddyfile` only listens to port `80`, and does not set up automatic TLS. However, if you have a domain name for your site, and its A/AAAA DNS records are properly pointed to this machine's public IP, then you can use this command to simply serve a site over HTTPS:
 
 ```console
-$ docker run -d -p 80:80 -p 443:443 \
+$ docker run -d -p 80:80 -p 443:443 -p 443:443/udp \
     -v /site:/srv \
     -v caddy_data:/data \
     -v caddy_config:/config \
@@ -123,6 +123,7 @@ services:
     ports:
       - "80:80"
       - "443:443"
+      - "443:443/udp"
     volumes:
       - $PWD/Caddyfile:/etc/caddy/Caddyfile
       - $PWD/site:/srv