nextcloud_information
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| nextcloud_information [2025/02/02 20:36] – mike | nextcloud_information [2025/12/08 09:36] (current) – mike | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Nextcloud Information ====== | ====== Nextcloud Information ====== | ||
| ---- | ---- | ||
| - | === A high level example of interfacing with Nextcloud (docker container) === | + | ~~NOTOC~~ |
| - | ##Open terminal in container | + | |
| - | docker exec -it nextcloud bash | + | |
| - | + | ||
| - | ##Turn on maintenance mode | + | |
| - | sudo -u abc php7 / | + | |
| - | + | ||
| - | ##Backup current nextcloud install | + | |
| - | mv / | + | |
| - | + | ||
| - | ##Grab newest nextcloud release and unpack it | + | |
| - | wget https:// | + | |
| - | tar -xvf latest.tar.bz2 -C / | + | |
| - | + | ||
| - | ##Copy across old config.php from backup | + | |
| - | cp / | + | |
| - | + | ||
| - | ##Now Restart docker container | + | |
| - | exit | + | |
| - | docker restart nextcloud | + | |
| - | + | ||
| - | ##Open terminal in container | + | |
| - | docker exec -it nextcloud bash | + | |
| - | + | ||
| - | ##Perform upgrade | + | |
| - | sudo -u abc php7 / | + | |
| - | + | ||
| - | ##Turn off maintenance mode | + | |
| - | sudo -u abc php7 / | + | |
| - | + | ||
| - | ## Now Restart docker container | + | |
| - | exit | + | |
| - | docker restart nextcloud | + | |
| - | + | ||
| - | === Upgrading Nextcloud running in a docker container: === | + | |
| - | Login to the console of the docker host and execute: | + | |
| - | docker exec -it <docker name> updater.phar | + | |
| | | ||
| === Disable IPv6 in Nextcloud === | === Disable IPv6 in Nextcloud === | ||
| Edit the file / | Edit the file / | ||
| - | === Suggested additions | + | === Additions |
| + | (Note: make sure to update the xxx.xxx.xxx.xxx in the code below to the IP of the proxy) | ||
| ' | ' | ||
| array ( | array ( | ||
| 0 => ' | 0 => ' | ||
| + | ), | ||
| + | ' | ||
| + | array ( | ||
| + | 0 => ' | ||
| + | 1 => ' | ||
| ), | ), | ||
| ' | ' | ||
| Line 62: | Line 32: | ||
| 9 => ' | 9 => ' | ||
| 10 => ' | 10 => ' | ||
| + | ), | ||
| ' | ' | ||
| ' | ' | ||
| ' | ' | ||
| + | |||
| + | === Updates to / | ||
| + | * Change set_real_ip_from from 172.16.0.0/ | ||
| + | * Ensure real_ip_header = X-Forwarded-For | ||
| === Updates to Nextcloud installs to handle large files === | === Updates to Nextcloud installs to handle large files === | ||
| Line 70: | Line 45: | ||
| * Update / | * Update / | ||
| - | Stop fucking pissing me off. | + | Bounce nextcloud (docker restart nextcloud-app) after any/all config edits. |
| - | ---- | + | |
| - | / | + | === Bulk actions in Nextcloud === |
| + | In this example, we are deleting multiple users. | ||
| - | Add: | + | Create a text file listing the accounts to be deleted, one per line. |
| - | ' | + | Execute the following command, referencing the just-created file: |
| - | array ( | + | |
| - | 0 => ' | + | |
| - | ), | + | |
| - | ' | + | |
| - | array ( | + | |
| - | 0 => 'X-Forwarded-For', | + | |
| - | 1 => ' | + | |
| - | | + | |
| - | ' | + | |
| - | array ( | + | |
| - | 0 => ' | + | |
| - | 1 => ' | + | |
| - | 2 => ' | + | |
| - | 3 => ' | + | |
| - | 4 => ' | + | |
| - | 5 => ' | + | |
| - | 6 => ' | + | |
| - | 7 => ' | + | |
| - | 8 => ' | + | |
| - | 9 => ' | + | |
| - | 10 => ' | + | |
| - | | + | |
| - | ' | + | |
| - | ' | + | |
| - | ' | + | |
| - | ===== | + | === Background image location |
| + | Background images are stored in the **appdata/ | ||
| - | / | + | ---- |
| - | Change set_real_ip_from from 172.16.0.0/ | + | ==== Older information that may no longer be relevant but is kept for historical value ==== |
| - | Ensure real_ip_header | + | |
| - | ===== | + | === A high level example of interfacing with Nextcloud (docker container) |
| + | ##Open terminal in container | ||
| + | docker exec -it nextcloud bash | ||
| + | |||
| + | ##Turn on maintenance mode | ||
| + | sudo -u abc php7 / | ||
| + | |||
| + | ##Backup current nextcloud install | ||
| + | mv / | ||
| + | |||
| + | ##Grab newest nextcloud release and unpack it | ||
| + | wget https:// | ||
| + | tar -xvf latest.tar.bz2 -C / | ||
| + | |||
| + | ##Copy across old config.php from backup | ||
| + | cp / | ||
| + | |||
| + | ##Now Restart docker container | ||
| + | exit | ||
| + | docker restart nextcloud | ||
| + | |||
| + | ##Open terminal in container | ||
| + | docker exec -it nextcloud bash | ||
| + | |||
| + | ##Perform upgrade | ||
| + | sudo -u abc php7 / | ||
| + | |||
| + | ##Turn off maintenance mode | ||
| + | sudo -u abc php7 / | ||
| + | |||
| + | ## Now Restart docker container | ||
| + | exit | ||
| + | docker restart nextcloud | ||
| - | Bounce nextcloud (docker | + | === Upgrading Nextcloud running in a docker |
| + | Login to the console of the docker host and execute: | ||
| + | docker exec -it <docker name> updater.phar | ||
nextcloud_information.1738557402.txt.gz · Last modified: by mike
