Hi !
I have a dedicated server running my website. The server runs Ubuntu 16.04 server and NGINX.
SSL is installed using Certboot and everything works great.
My domain redirects all https://www.exampledomain to https://exampledomain.com and all http is redirected to https
Now, I have installed NextcloudPI on a raspberry PI 3 and the installation seems to work fine.
My server have a local ip inside the firewall 192.168.1.15 and I have set the PI to IP 192.168.1.16
I want to add a Nginx proxypass rule to the main server https://examplledomain.com (192.168.1.15) so that all requests to the NextcloudPI witch responds no https://nc.exampledomain.com (192.168.1.16) gets directed to the raspberry running nextcloudPI and also SSL must be working and able to renew the SSL certificate in this configuration.
If possible, I want to use my already installed nginx running on the main server to do the proxy pass to the raspberry.