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.php
file. - Insert
overwriteprotocol' => 'https',
anywhere you'd like. - Also, add your domain name to
trusted_domains
attribute, and change theoverwrite.cli.url
to the same domain name.
Afterwards, re-start the app. Now, you can reach to your NextCloud instance using the new domain.