Procházet zdrojové kódy

Add proxy intstructions

DricomDragon před 4 roky
rodič
revize
3e01591219
1 změnil soubory, kde provedl 43 přidání a 0 odebrání
  1. 43 0
      Guides/nextcloud.md

+ 43 - 0
Guides/nextcloud.md

@@ -0,0 +1,43 @@
+# Nexctloud
+
+Journey to install Nextcloud on an Ubuntu Server 20.04 LTS instance.
+
+## Install
+
+Installed by checking _nexcloud_ on Ubuntu installation wizard. Can be installed later with **snap**.
+
+## Configure proxy
+
+_Use case : ports 80 and 443 are directed to my raspberry pi, and domain name cloud.me.ovh must be redirected to my nexcloud server on IP 192.168.1.110_
+
+Use proxy setting (more info on private httpd repo):
+
+```apache
+<VirtualHost *:80>
+    ServerName cloud.me.ovh
+    ProxyPreserveHost On
+    ProxyRequests Off
+    ProxyPass / http://192.168.1.110/
+    ProxyPassReverse / http://192.168.1.110/
+</VirtualHost>
+```
+
+## Trust domain
+
+Add a file `trust_domain.config.php` in folder _/var/snap/nextcloud/current/nextcloud/config_ with following content :
+
+```php
+<?php
+
+$CONFIG = [
+
+'trusted_domains' =>
+   [
+    'cloud.me.ovh',
+    '192.168.1.110',
+  ],
+
+];
+```
+
+No need to restart system, config is taken into account at web page reload.