惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Know Your Adversary
Know Your Adversary
GbyAI
GbyAI
T
The Blog of Author Tim Ferriss
B
Blog RSS Feed
大猫的无限游戏
大猫的无限游戏
Engineering at Meta
Engineering at Meta
Microsoft Security Blog
Microsoft Security Blog
P
Proofpoint News Feed
罗磊的独立博客
博客园 - 【当耐特】
G
Google Developers Blog
有赞技术团队
有赞技术团队
The Register - Security
The Register - Security
T
Tailwind CSS Blog
Blog — PlanetScale
Blog — PlanetScale
L
LangChain Blog
美团技术团队
The GitHub Blog
The GitHub Blog
阮一峰的网络日志
阮一峰的网络日志
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
博客园 - Franky
A
About on SuperTechFans
Vercel News
Vercel News
F
Full Disclosure
Recent Announcements
Recent Announcements
博客园 - 叶小钗
Hacker News - Newest:
Hacker News - Newest: "LLM"
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
S
Schneier on Security
Hugging Face - Blog
Hugging Face - Blog
T
The Exploit Database - CXSecurity.com
I
Intezer
月光博客
月光博客
Y
Y Combinator Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
C
CERT Recently Published Vulnerability Notes
S
Securelist
WordPress大学
WordPress大学
小众软件
小众软件
T
Tenable Blog
D
Docker
AWS News Blog
AWS News Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
博客园 - 司徒正美
C
CXSECURITY Database RSS Feed - CXSecurity.com
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
F
Fortinet All Blogs

puzzle9 blog

webdav - puzzle9 blog parser video tencent - puzzle9 blog wstunnel - puzzle9 blog rclone - puzzle9 blog debian 转换为 pve - puzzle9 blog nfs - puzzle9 blog webhookd 发布 - puzzle9 blog win 系统部署 by WinRM - puzzle9 blog hl7 初探 - puzzle9 blog realm 端口转发 - puzzle9 blog airflow - puzzle9 blog mysql 迁移到 mssql - puzzle9 blog 租房啊 - puzzle9 blog cr660x 路由器研究 - puzzle9 blog hs8145v 光猫研究 - puzzle9 blog dae 跨墙 - puzzle9 blog ZeroTier 打洞 🕊 - puzzle9 blog rathole 穿透 - puzzle9 blog WireGuard 组网 - puzzle9 blog
caddy - puzzle9 blog
2025-08-23 · via puzzle9 blog

caddy

发布于:2025-08-23 16:40:12 访问:

嗯 不愧是现有的替代品

这个出现源于浏览器的默认 https 模式访问

浏览器是 chrome
这个是 go 写的
嗯 这都很 google

安装

alpine

1
apk add caddy caddy-openrc

使用

默认配置文件位置 /etc/caddy/Caddyfile

可以这么引入更多文件

1
import /data/conf/*.caddy

示例配置

/data/conf/example.caddy

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[domain] {
encode zstd gzip

#tls email@domain

header -X-Powered-By
header -Server

log {
output file /var/log/caddy_domain.log

format console {
time_format wall
time_local
}
}

root * /data/html
file_server

respond / 418

#reverse_proxy 127.0.0.1:9000
}

可以使用 caddy fmt Caddyfile --overwrite 格式化缩进等并保存文件

插件

使用插件时会自动从 https://caddyserver.com/download 下载编译后的版本替换本地文件
如果使用源安装会出现被替换情况
建议直接二进制安装

dns_tencentcloud

dns 类的解决 非标准端口的证书服务

1
caddy add-package github.com/caddy-dns/tencentcloud
1
2
3
4
5
6
7
8
https://[domain]:[port] {
tls {
dns tencentcloud {
secret_id 'SecretId'
secret_key 'SecretKey'
}
}
}

webdav

1
caddy add-package github.com/mholt/caddy-webdav
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
order webdav before file_server
}

[domain] {
encode zstd gzip

redir /webdav /webdav/
handle /webdav/* {
basic_auth {
# 用户名为 user 密码为 123 使用 caddy hash-password 生成
user $2a$14$Yf5JnX4iYPX4Jrmki5h.hO.1J2JDrBPIVbK2oqIj5geG6RNG.bMc6
}
webdav {
root /data
prefix /webdav
}
}
}

参考地址