Traefik Configuration
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 38/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- docker-compose
调研方向
首先查看 PR 684 以及文档网站中现有的配置示例;该 issue 提供了需要调整的 Docker Compose 和 Traefik 配置。完成的标准是将 Traefik discovery-service 配置发布到文档中的适当位置。
由索引模型根据 Issue 内容生成。
描述
Not a bug but a thank you to the good work published in the PR https://github.com/syncthing/docs/pull/684 where I was able to get traefik to proxy the discovery service.
example compose file:
syncthing-discosrv:
image: syncthing/discosrv:1.29
container_name: syncthing-discosrv
volumes:
- syncthing-discover:/var/stdiscosrv
ports:
- 8880:8443
restart: unless-stopped
entrypoint: ["/bin/stdiscosrv", "--http", "--debug"]
example traefik file:
http:
routers:
syncthing-discovery-router:
rule: Host(`syncthing-discovery.example.com`)
service: syncthing-discovery-service
entryPoints:
- websecure
tls:
options: syncthing-discosrv
middlewares:
- syncthing-discovery-headers
services:
syncthing-discovery-service:
loadBalancer:
servers:
- url: http://10.0.0.10:8880
middlewares:
syncthing-discovery-headers:
passtlsclientcert:
pem: true
tls:
options:
syncthing-discosrv:
clientAuth:
# clientAuthType: RequireAnyClientCert # this was the example in the PR however i found the option below to work
clientAuthType: RequestClientCert
certificates:
- certFile: /etc/traefik/ssl/example.com.crt
keyFile: /etc/traefik/ssl/example.com.key
Hopefully this will help others and maybe the devs will publish the traefik config into the documentation
- 主要语言
- Python
- 星标
- 328
- 派生
- 658
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
syncthing/docs 的其他 Issue
-
Autostart on Windows: Add note about broken --no-console when using the Startup folder method可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 62/100
-
bug needs-triage
难度 4/5 3-5 天 新手友好度 35/100
-
bug
难度 3/5 1-2 天 新手友好度 35/100
-
Alternative docs theme experiment (with builtin dark mode)可能已有人在做 @liborjelinek 于 219 天前认领。 未关闭
难度 5/5 一周以上 新手友好度 25/100
-
Dark theme未关闭
难度 5/5 一周以上 新手友好度 30/100
相似的 Issue
-
needs triage
难度 2/5 1-3 小时 新手友好度 83/100
darnitdevorg/darnit#587 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
accessibility good first issue
难度 1/5 1-3 小时 新手友好度 92/100
维护者通常 1 天内回复
-
llm translation
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug bug-hunt
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复