Erzeuge VirtualHost-Configs für Apache (HTTP→HTTPS-Redirect, SSL-Platzhalter, Security-Header, ProxyPass inkl. WebSockets). Presets passend zum Better-than-NAS-Setup.

Apache-Module (einmalig aktivieren):
a2enmod proxy proxy_http proxy_wstunnel headers ssl rewrite