Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
syno:nextcloud [2025/11/30 12:55] – [Links] Bernard Condrausyno:nextcloud [2025/12/04 12:55] (current) – [Log file] Bernard Condrau
Line 77: Line 77:
   - Follow the detailed instructions in [[https://github.com/nextcloud/all-in-one?tab=readme-ov-file#user-content-nextcloud-all-in-one|Nextcloud All-in-One]]   - Follow the detailed instructions in [[https://github.com/nextcloud/all-in-one?tab=readme-ov-file#user-content-nextcloud-all-in-one|Nextcloud All-in-One]]
   - Specific instructions for the reverse proxy are in the [[https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md#user-content-introduction|Reverse Proxy Documentation]]   - Specific instructions for the reverse proxy are in the [[https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md#user-content-introduction|Reverse Proxy Documentation]]
 +  - SSH into your NAS and find the API version of your docker instance:<file>sudo docker version</file>
 +  - Find the //API version// from the output and add it to the environment of the docker run command, in this example //1.43//, with ''--env DOCKER_API_VERSION=1.43''
   - SSH into your NAS and run the following command:<file>sudo docker run \   - SSH into your NAS and run the following command:<file>sudo docker run \
 --init \ --init \
Line 83: Line 85:
 --restart always \ --restart always \
 --publish 8080:8080 \ --publish 8080:8080 \
 +--env DOCKER_API_VERSION=1.43 \
 --env APACHE_PORT=11000 \ --env APACHE_PORT=11000 \
 --env APACHE_IP_BINDING=0.0.0.0 \ --env APACHE_IP_BINDING=0.0.0.0 \
Line 100: Line 103:
 ===== Nextcloud AIO Configuration ===== ===== Nextcloud AIO Configuration =====
   * When done, open a web browser and point it to ''<nowiki>https://your.nas.ip.addr:8080</nowiki>'' and follow the on-screen instructions in //Nextcloud AIO// to setup all related Nextcloud containers   * When done, open a web browser and point it to ''<nowiki>https://your.nas.ip.addr:8080</nowiki>'' and follow the on-screen instructions in //Nextcloud AIO// to setup all related Nextcloud containers
 +  * Select //Whiteboard//, de-select all other containers
   * Select "Nextcloud Hub 25 Autumn" and start the installation   * Select "Nextcloud Hub 25 Autumn" and start the installation
   * Note that it will take time to download, install, and start all related containers   * Note that it will take time to download, install, and start all related containers
Line 116: Line 120:
 sudo docker logs -f nextcloud-aio-apache</file> sudo docker logs -f nextcloud-aio-apache</file>
   * If your Nextcloud is running and you are logged in as admin in your Nextcloud, you can easily log in to the AIO interface by opening ''<nowiki>https://yourdomain.tld/settings/admin/overview</nowiki>'' which will show a button on top that enables you to log in to the AIO interface by just clicking on this button.   * If your Nextcloud is running and you are logged in as admin in your Nextcloud, you can easily log in to the AIO interface by opening ''<nowiki>https://yourdomain.tld/settings/admin/overview</nowiki>'' which will show a button on top that enables you to log in to the AIO interface by just clicking on this button.
 +
 +==== If you are re-installing Nextcloud without backup ====
 +  * Uninstall the client and then delete the following folders:<code>C:\Users\yourwindowsusername\Nextcloud"
 +C:\Users\yourwindowsusername\AppData\Local\Nextcloud
 +C:\Users\yourwindowsusername\AppData\Roaming\Nextcloud</code>
 +  * If you synced external storage, remove the hidden files (starting with a ''.'') in each folder which was synced, e.g. ''.nextcloudsync.log'', ''.sync-exclude.lst'', ''.sync_*.db*''
 +===== Log file =====
 +  * Login to the nextcloud instance<code>sudo docker exec -it nextcloud-aio-nextcloud bash</code>
 +  * Config file:<code>vi /var/www/html/config/config.php</code>
 +  * Log file:<code>vi /var/www/html/data/nextcloud.log</code>
 +  * Truncate log file:<code>sudo -u www-data truncate /var/www/html/data/nextcloud.log --size 0</code>
 +===== Security & setup warnings =====
 +==== Mimetype migration ====
 +  * Login to NextCloud CLI<file>sudo docker exec -it nextcloud-aio-nextcloud bash</file>
 +  * Then execute<file>sudo -E -u www-data php occ maintenance:repair --include-expensive</file>
 +==== Email ====
 +  * Enter your email SMTP credentials
 +
 +==== Default Phone Region ====
 +  * Set the default phone region with:<file>sudo docker exec -it nextcloud-aio-nextcloud php occ config:system:set default_phone_region --value="XX"</file>
 +
 ===== Attach external storage ===== ===== Attach external storage =====
-  * SSH into your DSM and add 'nextcloud' as user and group with ID to ''/etc/passwd'' and ''/etc/group''+  - If your latest version of files is already on the server: remove all files from your desktop 
 +  - If your latest version of files is on your desktop: remove all files from the server 
 +  - Login to Nextcloud and enable //External storage support// in //Profile --> Apps --> Disabled apps// 
 +  - Go to //Adminstration settings --> External storage// and add the path to external storage: 
 +    * Folder name: the name identify this storage from the client 
 +    * External storage: Local 
 +    * Authentication: None 
 +    * Configuration: path to the external storage volume. On Synology this would be /volume1/<shared folder>
 +    * Available for: <user
 +  - Open your Nextcloud client, then go to //Profile --> Settings// 
 +  - Click //Add Folder Sync Connection//, enter the local path to your folder to sync, then select the Folder name you set when you added the external storage 
 +  - Remove the preset Folder Sync Connection in your client 
 +==== Links ====
   * [[https://www.youtube.com/watch?v=hl1SpXwG1PI&t=5s|Add External Storage On Your Nextcloud: Complete Setup Guide!]]   * [[https://www.youtube.com/watch?v=hl1SpXwG1PI&t=5s|Add External Storage On Your Nextcloud: Complete Setup Guide!]]
 ===== Links ===== ===== Links =====