Remove ugly formatting around values to be replaced
This commit is contained in:
parent
29885a4478
commit
e3909dfae7
@ -44,8 +44,8 @@ Download Nextcloud into `/var/www`
|
|||||||
[shroot]
|
[shroot]
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
wget https://download.nextcloud.com/server/releases/nextcloud-{VERSION}.tar.bz2
|
wget https://download.nextcloud.com/server/releases/nextcloud-[VERSION].tar.bz2
|
||||||
tar -xf nextcloud-{VERSION}.tar.bz2
|
tar -xf nextcloud-[VERSION].tar.bz2
|
||||||
```
|
```
|
||||||
|
|
||||||
[/shroot]
|
[/shroot]
|
||||||
@ -73,7 +73,7 @@ vi /etc/apache2/sites-available/nextcloud.conf
|
|||||||
Configuration file
|
Configuration file
|
||||||
|
|
||||||
```apacheconf
|
```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
|
ServerAdmin webmaster@localhost
|
||||||
DocumentRoot /var/www/nextcloud
|
DocumentRoot /var/www/nextcloud
|
||||||
Alias /nextcloud "/var/www/nextcloud/"
|
Alias /nextcloud "/var/www/nextcloud/"
|
||||||
@ -133,12 +133,12 @@ sudo -u www-data crontab -e
|
|||||||
Add this following line:
|
Add this following line:
|
||||||
|
|
||||||
```
|
```
|
||||||
*/5 * * * * php -f {NEXTCLOUD DIR}/cron.php
|
*/5 * * * * php -f [NEXTCLOUD DIR]/cron.php
|
||||||
```
|
```
|
||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
|
||||||
The main config file is `{NEXTCLOUD DIR}/config/config.php`
|
The main config file is `[NEXTCLOUD DIR]/config/config.php`
|
||||||
|
|
||||||
#### Automatic Trash clearing
|
#### Automatic Trash clearing
|
||||||
|
|
||||||
@ -158,7 +158,7 @@ This disables the warning of untrusted proxy in the webinterface.
|
|||||||
```php
|
```php
|
||||||
'trusted_proxies' =>
|
'trusted_proxies' =>
|
||||||
array (
|
array (
|
||||||
0 => '{PROXY IP}',
|
0 => '[PROXY IP]',
|
||||||
),
|
),
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -169,8 +169,8 @@ Array of trusted domains.
|
|||||||
```php
|
```php
|
||||||
'trusted_domains' =>
|
'trusted_domains' =>
|
||||||
array (
|
array (
|
||||||
0 => '{DOMAIN 1}',
|
0 => '[DOMAIN 1]',
|
||||||
1 => '{DOMAIN 2}',
|
1 => '[DOMAIN 2]',
|
||||||
),
|
),
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -207,7 +207,7 @@ Dump database to file
|
|||||||
_NOTE: The password needs to be inserted directly after `-p` without any space_
|
_NOTE: The password needs to be inserted directly after `-p` without any space_
|
||||||
|
|
||||||
```sh
|
```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)
|
> [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
|
### Restore Database
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mariadb -h {SERVER} -u {USERNAME} -p{PASSWORD} -e "DROP DATABASE nextcloud"
|
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 "CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci"
|
||||||
```
|
```
|
||||||
|
|
||||||
```sh
|
```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)
|
> [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
|
```sh
|
||||||
podman run -itd --name onlyoffice -p 8080:80 \
|
podman run -itd --name onlyoffice -p 8080:80 \
|
||||||
-e JWT_SECRET={secret key} \
|
-e JWT_SECRET=[SECRET KEY] \
|
||||||
docker.io/onlyoffice/documentserver
|
docker.io/onlyoffice/documentserver
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user