Proper support for TLS termination on the proxy

Đang mở
#317 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
docker-compose
Lĩnh vực
devops

Hướng nghiên cứu

Start by tracing how the CODE Server deployment passes extra_params through to coolwsd.xml, and review the behavior discussed in #45 and #752. Done means a supported setting keeps generated URLs on HTTPS when ssl.enable=false, allowing TLS to terminate at the proxy; the issue reports no implementation files or tests.

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

Mô tả

Currently, deploying

services:
  cms-collabora:
    image: collabora/code
    restart: unless-stopped
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Lisbon
      - password=${COLLABORA_PASSWORD:?collabora password required}
      - username=nextcloud
      - domain=${DOMAIN}
      # Caddy covers ssl
      - extra_params=--o:ssl.enable=false --o:server_name=cms-collabora${DOMAIN}
    expose:
      - "9980"

and a proxy to forward traffic to port 9980 from cms-collabora${DOMAIN} results on the call

curl https://cms-collabora${DOMAIN}/hosting/discovery

to return stuff like

urlsrc="http://cms-collabora${DOMAIN}/browser/5aa2ead294/cool.html?

i.e. all urls to be of the form http://cms-collabora${DOMAIN}. This causes mixed content on a browser when trying to configure Nextcloud Office on the UI:

Your browser has been unable to connect to the Collabora server: http://cms-collabora$DOMAIN
This URL is determined on the Collabora server either from the configured URL or the server_name parameter in coolwsd.xml.

I tried to forward https on X-Forwarded-Proto and it is also ignored.

I would like to suggest an extra param that allows to keep https on all urls, even when ssl.enable=false.

Note that removing ssl.enable as suggested in #45 option only causes collabora to serve under its own certificates, which does not allow the user to control the certificates they use at the proxy level.

Related to #752.

Ngôn ngữ chính
PHP
Star
156
Fork
37
Merge trung bình
23 giờ 51 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 CollaboraOnline/richdocumentscode

Tất cả issue của CollaboraOnline/richdocumentscode

Issue tương tự

Thêm issue về PHP

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.