42个版本
0.4.5 | 2024年8月14日 |
---|---|
0.4.4 | 2024年7月13日 |
0.4.2 | 2024年6月28日 |
0.3.31 | 2024年6月24日 |
0.1.11 | 2024年5月28日 |
582 在 网络编程
232 每月下载量
205KB
4.5K SLoC
Proksi:自动SSL、HTTP和DNS代理

关于
Proksi是一个简单、轻量级且易于使用的代理服务器,可自动处理SSL、HTTP和DNS流量。它设计为用作独立代理服务器或更大系统中的组件。Proksi用Rust编写,并使用Pingora作为其核心网络库。
快速入门
- 从https://github.com/luizfonseca/proksi/releases下载最新版本
- 创建一个名为
proksi.hcl
的配置文件 - 将以下内容添加到文件中
lets_encrypt {
enabled = true
email = "[email protected]"
}
paths {
# Where to save certificates?
lets_encrypt = "./"
}
# A list of routes Proksi should handle
routes = [
{
# You might need to edit your /etc/hosts file here.
host = "mysite.localhost",
# Will create a certificate for mysite.localhost
ssl_certificate = {
self_signed_on_failure = true
}
# Where to point mysite.localhost to
upstreams = [{
ip = "docs.proksi.info"
port = 443
headers = {
add = [{ name = "Host", value = "docs.proksi.info" }]
}]
}
]
- 运行
proksi -c /path-where-proksi.hcl-is-located
有关更多信息或指南,请参阅文档。
文档
Proksi的文档可以在https://docs.proksi.info找到,该文档也位于此存储库的gitbook文件夹中。
贡献
我们欢迎对Proksi的贡献。如果您有任何建议或想法,请随时在GitHub仓库中打开问题或拉取请求。
许可
Proksi遵循MIT许可、Apache许可证2.0,并免费使用和修改。
依赖关系
~49–72MB
~1.5M SLoC