mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-25 11:03:07 +00:00
26 lines
1.3 KiB
Markdown
26 lines
1.3 KiB
Markdown
# Nextcloud
|
|
|
|
Homepage: [https://nextcloud.com](https://nextcloud.com)
|
|
|
|
|
|
## Usage
|
|
|
|
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 environment variable set up for this in the "nextcloud task" which will most likely make manual configuration unnecessary. 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)
|