Remove ugly formatting around values to be replaced

This commit is contained in:
exu 2023-07-11 17:42:42 +02:00
parent 29885a4478
commit e3909dfae7

View File

@ -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
<VirtualHost *:80> #specify listen ip addresses: {ADDRESS}:{PORT} for ipv4, [{ADDRESS}]:{PORT} vor ipv6, *:80 for all
<VirtualHost *:80> # 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
```