Proper support for TLS termination on the proxy

Offen
#317 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
25/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
docker-compose
Bereich
devops

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
PHP
Sterne
156
Forks
37
Ø Merge
23 Std. 51 Min.
Gemergte PRs (30 T.)
2

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus CollaboraOnline/richdocumentscode

Alle Issues in CollaboraOnline/richdocumentscode

Ähnliche Issues

Weitere Issues zu PHP

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.