Problem with Cryptpad Letsencrypt certificate

English

It took a while to fully track down this bug.

The problem itself is easy to explain — the YunoHost package never deploys the nginx configuration for the sandbox domain automatically. What made the fix complicated is that there are three situations that trigger the issue:

  1. Directly after installation — the config is never created
  2. After every reboot — the config is missing at system startup
  3. After domain actions in YunoHost (adding, removing domains, certificate renewal) — YunoHost runs regen-conf and reloads nginx multiple times

Each of these situations needed its own fix. The complete step-by-step guide is documented here:

ENDE

I hope this helps.


Deutsch

Es hat eine Weile gedauert, den Fehler vollständig zu lokalisieren.

Das Problem selbst ist schnell erklärt – das YunoHost-Paket deployed die nginx-Konfiguration für die Sandbox-Domain nicht automatisch. Was die Lösung kompliziert hat: Es gibt drei Situationen die den Fehler auslösen:

  1. Direkt nach der Installation – die Config wird nie erstellt
  2. Nach jedem Reboot – die Config fehlt beim Systemstart
  3. Nach Domain-Aktionen in YunoHost (Domain anlegen, löschen, Zertifikat erneuern) – YunoHost führt dabei regen-conf aus und lädt nginx mehrfach neu

Jede dieser Situationen brauchte eine eigene Lösung. Die vollständige Anleitung mit allen Schritten ist hier dokumentiert:

ENDE

Ich hoffe das hilft weiter.