How to Configure NGINX Reverse Proxy Server for NextcloudPi?
I have an existing Nextcloud installation (courtesy of NextcloudPi) that’s been up and running on my RasPi for well over a year now. It has the full LetsEncrypt/SSL setup installed and all works great. Now I want to add another pi-based website to the mix, using a 3rd Pi as an NGINX-based reverse proxy server. My question is how do I handle the HTTPS stuff for the NCP installation? Connecting it directly to the reverse proxy server using a simple proxy_pass didn’t work – do I need to set up a new LetEncrypt certificate for the RP server, and if so, will that be compatible with the existing NCP certificate? I’m a bit of a noob at proxying, and am not quite sure how to proceed. Any insight would be appreciated.
Many thanks in advance!
– DL
| NextCloudPi version | v1.17.0 |
|---|---|
| NextCloudPi image | NextCloudPi_10-10-17 |
| distribution | Raspbian GNU/Linux 9 \n \l |
| automount | yes |
| USB devices | sda sdb |
| datadir | /media/NC-data/nc-data |
| data in SD | no |
| data filesystem | btrfs |
| data disk usage | 23G/58G |
| rootfs usage | 5.1G/30G |
| swapfile | /var/swap |
| dbdir | /var/lib/mysql |
| Nextcloud check | ok |
| Nextcloud version | 15.0.5.3 |
| HTTPD service | up |
| PHP service | up |
| MariaDB service | up |
| Redis service | up |
| Postfix service | up |
| internet check | ok |
| port check 80 | open |
| port check 443 | open |
| IP | 192.168.1.175 |
| gateway | 192.168.1.1 |
| interface | eth0 |
| NAT loopback | no |
| uptime | 28days |