Enabling HTTPS for NextCloud on CasaOS
- Please add the following env var into NextCloud's Docker Compose:
NEXTCLOUD_OVERWRITEPROTOCOL=https - Afterwards, go to NextCloud's directory (which you can find using the app's settings, and check the volume mount point) and edit the
config/config.phpfile. - Insert
overwriteprotocol' => 'https',anywhere you'd like. - Also, add your domain name to
trusted_domainsattribute, and change theoverwrite.cli.urlto the same domain name.
Afterwards, re-start the app. Now, you can reach to your NextCloud instance using the new domain.