安装部署
MacOS安装RabbitMQ
API网关部署
Centos安装Chrome浏览器
gitlab
gitlab-cicd
gitlab-runner安装配置
Gitlab-CICD实践篇
gitlab维护
gitlab备份-异地恢复-升级
gitlab从13.10.2升级至14.4.1出现的问题
Let's Encrypt
Let's Encrypt 申请证书
certbot发起web认证请求流程
安装CMDBUILD
vim配置
keepalived
配置样例
wine tips
supervisord
kafka
zookeeper
minio
django
jupyter
supervisor管理的kafka zookeeper集群部署
dnsmasq
apisix
APISIX结合skywalking对各个服务的访问情况进行监控
APISIX通过consul动态发现服务
Grafana Labs
Loki(stack)
etcd
redis
mongodb
mongodb添加仲裁节点
consul
sqlite更新升級
openssl安裝升級
emby
inotify-tools
caddy
caddy规则
ohmyzsh tips
debian-nvidia-container-runtime
openwrt+802.1x+freeradius+casdoor
本文档使用 MrDoc 发布
-
+
首页
caddy
# caddy caddy部署quic很方便,所以部署一个测试一下效果。 ## docker部署 先编辑Caddyfile,否则启动会报错,因为容器内是文件不是文件夹。 - [Caddyfile](https://caddyserver.com/docs/caddyfile/concepts) ```shell # The Caddyfile is an easy way to configure your Caddy web server. # # Unless the file starts with a global options block, the first # uncommented line is always the address of your site. # # To use your own domain name (with automatic HTTPS), first make # sure your domain's A/AAAA DNS records are properly pointed to # this machine's public IP, then replace ":80" below with your # domain name. :80 { # Set this path to your site's directory. root * /usr/share/caddy # Enable the static file server. file_server # Another common task is to set up a reverse proxy: # reverse_proxy localhost:8080 # Or serve a PHP site through php-fpm: # php_fastcgi localhost:9000 } https://wiki.ihoiwan.com:3003 { tls /ssl/fullchain.cer /ssl/*.ihoiwan.com.key reverse_proxy http://192.168.1.11:4002 } # Refer to the Caddy docs for more information: # https://caddyserver.com/docs/caddyfile ``` - [docker-compose.yaml](https://hub.docker.com/_/caddy) ```shell version: "3.7" services: caddy: container_name: caddy image: caddy:latest restart: unless-stopped ports: - '80:80' - "443:443" - "443:443/udp" volumes: - /opt/caddy/Caddyfile:/etc/caddy/Caddyfile - /opt/caddy/site:/srv - /opt/caddy/data:/data - /etc/nginx/ssl/:/ssl - /opt/caddy/caddy_config:/config ``` # 访问测试quic https://wiki.ihoiwan.com:3003 ![](/media/202212/2022-12-08_153725_199956.png) 协议一栏显示的为`h3`即为http/3.0 quic协议
zhangky
2022年12月9日 09:51
分享文档
收藏文档
上一篇
下一篇
微信扫一扫
复制链接
手机扫一扫进行分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码