From e3909dfae7e8be66cff806c35cd1983db401a8ea Mon Sep 17 00:00:00 2001 From: exu Date: Tue, 11 Jul 2023 17:42:42 +0200 Subject: [PATCH] Remove ugly formatting around values to be replaced --- pages/02.linux/nextcloud/default.en.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/pages/02.linux/nextcloud/default.en.md b/pages/02.linux/nextcloud/default.en.md index 437c495..4b13cd5 100644 --- a/pages/02.linux/nextcloud/default.en.md +++ b/pages/02.linux/nextcloud/default.en.md @@ -44,8 +44,8 @@ Download Nextcloud into `/var/www` [shroot] ```sh -wget https://download.nextcloud.com/server/releases/nextcloud-{VERSION}.tar.bz2 -tar -xf nextcloud-{VERSION}.tar.bz2 +wget https://download.nextcloud.com/server/releases/nextcloud-[VERSION].tar.bz2 +tar -xf nextcloud-[VERSION].tar.bz2 ``` [/shroot] @@ -73,7 +73,7 @@ vi /etc/apache2/sites-available/nextcloud.conf Configuration file ```apacheconf - #specify listen ip addresses: {ADDRESS}:{PORT} for ipv4, [{ADDRESS}]:{PORT} vor ipv6, *:80 for all + # specify listen ip addresses: ADDRESS:PORT for ipv4, [ADDRESS]:PORT vor ipv6, *:80 for all ServerAdmin webmaster@localhost DocumentRoot /var/www/nextcloud Alias /nextcloud "/var/www/nextcloud/" @@ -133,12 +133,12 @@ sudo -u www-data crontab -e Add this following line: ``` -*/5 * * * * php -f {NEXTCLOUD DIR}/cron.php +*/5 * * * * php -f [NEXTCLOUD DIR]/cron.php ``` ### Configuration -The main config file is `{NEXTCLOUD DIR}/config/config.php` +The main config file is `[NEXTCLOUD DIR]/config/config.php` #### Automatic Trash clearing @@ -158,7 +158,7 @@ This disables the warning of untrusted proxy in the webinterface. ```php 'trusted_proxies' => array ( - 0 => '{PROXY IP}', + 0 => '[PROXY IP]', ), ``` @@ -169,8 +169,8 @@ Array of trusted domains. ```php 'trusted_domains' => array ( - 0 => '{DOMAIN 1}', - 1 => '{DOMAIN 2}', + 0 => '[DOMAIN 1]', + 1 => '[DOMAIN 2]', ), ``` @@ -207,7 +207,7 @@ Dump database to file _NOTE: The password needs to be inserted directly after `-p` without any space_ ```sh -mysqldump --single-transaction -h {SERVER} -u {USERNAME} -p{PASSWORD} {DB NAME} > nextcloud-sqlbkp_`date +"%Y%m%d"`.bak +mysqldump --single-transaction -h [SERVER] -u [USERNAME] -p[PASSWORD] [DB NAME] > nextcloud-sqlbkp_`date +"%Y%m%d"`.bak ``` > [Official documentation](https://docs.nextcloud.com/server/latest/admin_manual/maintenance/backup.html) @@ -235,12 +235,12 @@ sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off ### Restore Database ```sh -mariadb -h {SERVER} -u {USERNAME} -p{PASSWORD} -e "DROP DATABASE nextcloud" -mariadb -h {SERVER} -u {USERNAME} -p{PASSWORD} -e "CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci" +mariadb -h [SERVER] -u [USERNAME] -p[PASSWORD] -e "DROP DATABASE nextcloud" +mariadb -h [SERVER] -u [USERNAME] -p[PASSWORD] -e "CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci" ``` ```sh -mariadb -h {SERVER} -u {USERNAME} -p{PASSWORD} {DB NAME} < nextcloud-sqlbkp.bak +mariadb -h [SERVER] -u [USERNAME] -p[PASSWORD] [DB NAME] < nextcloud-sqlbkp.bak ``` > [Nextcloud documentation](https://docs.nextcloud.com/server/latest/admin_manual/maintenance/restore.html) @@ -330,7 +330,7 @@ Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval' data: ```sh podman run -itd --name onlyoffice -p 8080:80 \ - -e JWT_SECRET={secret key} \ + -e JWT_SECRET=[SECRET KEY] \ docker.io/onlyoffice/documentserver ```