ansible-nas/docs/applications/nextcloud.md

27 lines
1.3 KiB
Markdown
Raw Normal View History

# Nextcloud
Homepage: [https://nextcloud.com](https://nextcloud.com)
## Usage
2020-01-25 23:40:26 +00:00
Set `nextcloud_enabled: true` in your `inventories/<your_inventory>/nas.yml` file.
Tread carefully.
External access may require that you manually configure your Fully Qualified Domain Name (FQDN) as a trusted domain within the application. There is an evnironment variable set up for this in the "nextcloud task" which will most likely make manual configuration unneccessary. If you get the following [screenshot](https://docs.nextcloud.com/server/14/admin_manual/installation/installation_wizard.html#trusted-domains) warning when trying to access nextcloud externally you'll need to manually set it up.
This can be accomplished in two commands.
```bash
# On the server where the docker containers are running
$ docker exec -it --user www-data nextcloud /bin/bash
$ php occ config:system:set trusted_domains INDEX_FOR_NEW_ENTRY_SEE_DOCS_LINK_BELOW --value=YOUR_FQDN_HERE --update-only
```
The above commands are documented in the administration guide for Nextcloud:
* [set array values](https://docs.nextcloud.com/server/14/admin_manual/configuration_server/occ_command.html#setting-an-array-configuration-value)
* [docker container docs, references environment variables](https://github.com/nextcloud/docker)