Traefik Configuration
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 38/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- docker-compose
- Domain
- documentation
Research direction
Review PR 684 and the documentation site's existing configuration examples first; the issue provides Docker Compose and Traefik configuration to adapt. Done means the Traefik discovery-service configuration is published in the documentation in a suitable location.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Python
- Stars
- 327
- Forks
- 653
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from syncthing/docs
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Dark theme Open
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
anthropics/skills#1811 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
speaches-ai/speaches#678 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
datalayer/mcp-compose#42 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
conda-forge/spacy-feedstock#177 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
UKGovernmentBEIS/inspect_evals#2523 ·