Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Traefik Configuration

Đang mở
#893 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
38/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
docker-compose
Lĩnh vực
documentation

Hướng nghiên cứu

Trước tiên, hãy xem xét PR 684 và các ví dụ cấu hình hiện có của trang tài liệu; issue cung cấp cấu hình Docker Compose và Traefik để điều chỉnh. Công việc được hoàn tất khi cấu hình discovery-service của Traefik được công bố trong tài liệu ở một vị trí phù hợp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Python
Star
327
Fork
653
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của syncthing/docs

Tất cả issue của syncthing/docs

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.