Guide contents
Nextcloud
Your files, calendars and contacts on your domain, with large uploads working.
Publish it
Before: the server installed («Install the server») and the agent's machine joined («Connect your machines»). With --preset, add sets this app's port, options and checks.
On the agent's machine
lnkstart add nube=192.168.1.40 --preset nextcloud sudo lnkstart install
The preset uses 8080 (if yours is another, write it: nube=192.168.1.40:11000), sets --preserve-host so Nextcloud sees its public name, which is the one it checks, and gives it 600 s to answer. When done, it prints the config.php lines with your name and this machine's IP.
With Nextcloud AIO, start it in reverse proxy mode (APACHE_PORT=11000) and add it with that port.
config.php
The public name among the trusted domains, the agent's machine as a proxy, and the addresses it generates, with https:
config/config.php
'trusted_domains' => ['localhost', 'nube.tunnels.midominio.com'], 'trusted_proxies' => ['192.168.1.20'], 'overwriteprotocol' => 'https', 'overwrite.cli.url' => 'https://nube.tunnels.midominio.com',
Large uploads
The upload goes through the tunnel as it arrives, with no size cap. What can cut it is the wait afterwards: when a multi-GB file ends, Nextcloud takes a while to assemble its chunks. The preset gives this service 600 s, instead of the server's 60; without the preset, add --timeout 600.