Install NGINX Proxy Manager in LXD/LXC container
copy & paste in advanced settings
location /.well-known/carddav {
return 301 $scheme://$host/remote.php/dav;
}
location /.well-known/caldav {
return 301 $scheme://$host/remote.php/dav;
}
location /.well-known/webfinger {
return 301 $scheme://$host/index.php/.well-known/webfinger;
}
location /.well-known/nodeinfo {
return 301 $scheme://$host/index.php/.well-known/nodeinfo;
}
edit the config.php by hand:
sudo nano /var/snap/nextcloud/current/nextcloud/config/config.php.
add the following lines:
'trusted_proxies' =>
array (
0 => 'your.nginx.proxy.ip',
),