Proper support for TLS termination on the proxy

オープン
#317 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
docker-compose
領域
devops

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
PHP
スター
156
フォーク
37
平均マージ
23時間 51分
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CollaboraOnline/richdocumentscode のほかの issue

CollaboraOnline/richdocumentscode の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。