Switch editing instructions from vim to nano and use kbd for keys

This commit is contained in:
Djeex
2026-08-30 18:49:10 +02:00
parent 2608bf64eb
commit bb1a482a8d
50 changed files with 210 additions and 210 deletions
+6 -6
View File
@@ -125,10 +125,10 @@ In Nextclouds files, edit the `config.php` file:
::
```sh
sudo vi /docker/nextcloud/config/www/nextcloud/config/config.php
sudo nano /docker/nextcloud/config/www/nextcloud/config/config.php
```
Enter edit mode with `i` and paste the following before the final `);`:
Paste the following before the final `);`:
```php
'trusted_proxies' => [gethostbyname('swag')],
@@ -146,15 +146,15 @@ array (
),
```
Press `Esc`, then save and exit by typing `:x` and hitting Enter.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
In Swags folders, create the file `nextcloud.subdomain.conf`:
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/nextcloud.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/nextcloud.subdomain.conf
```
Enter edit mode with `i` and paste the following:
Paste the following:
```nginx
## Version 2024/04/25
@@ -188,7 +188,7 @@ server {
}
```
Press `Esc`, save and exit with `:x` then Enter.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
Thats it—youve exposed Nextcloud! Dont forget to install [the desktop and mobile apps](https://nextcloud.com/install/).