I feel like I should add this here as well:
How to enable HSTS for the "official" Nextcloud docker.
Go to Caddy --> Reverse Proxy --> HTTP Headers and add a new one.
Header: header_down
Header Type: +Strict-Transport-Security
Header Value: max-age=31536000;
Save and add it to your Nextcloud http handler. Save and apply.
How to enable HSTS for the "official" Nextcloud docker.
Go to Caddy --> Reverse Proxy --> HTTP Headers and add a new one.
Header: header_down
Header Type: +Strict-Transport-Security
Header Value: max-age=31536000;
Save and add it to your Nextcloud http handler. Save and apply.