Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.45 KB

NEXTCLOUD.snap--NGINX_Proxy_Settings.md

File metadata and controls

59 lines (41 loc) · 1.45 KB

NGINX Proxy Manager

Install NGINX Proxy Manager in LXD/LXC container

grafik

NGINX Proxy Manager configuration for Nextcloud-snap

1. Add a new Proxy Host

grafik


2. Get your SSL Certificate

grafik


3. Advanced settings for Nextcloud-snap

grafik

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;
}

Configure Nextcloud-snap

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',
   ),