Nextcloud AIO behind ngix reverse proxy?

Hello,
I want to set another webside beside nextcloud aio but using the same server up. I heard that I would need a reverse proxy for that and I decided for nginx. Now my Nextcloud AIO is already working and I want to put a Nginx reverse proxy in front of it, so that example.de can be nextcloud aio and website.example.de an HTML file in another folder. And so that i dont have to enter port numbers behind the domain. But if there is any reason to not use nginx I am open to other systems
Thank you for your help
Greetings Max

That should work without a problem and I don’t see anything that speaks against that.

Only thing to keep in mind is that you have to decide for or against encryption between the proxy and AIO.
I personally would decide against it, because I see no value in it (my Proxy and NC in their own VLAN).

I wrote a guide for a bare metal installation, and the Proxy part applies 1:1 to your setup if you use http and port 80 on AIO.

In your tutorial it says “No Docker” but my nextcloud aio runs in docker. Does it still work?

Unfortunately I don’t know how AIO handles encryption and what port it uses by default.

Anyway, the proxy config should be the same as described in the chapter NGINX settings on the reverse Proxy.
Maybe your AIO is using SSL, than you should use

proxy_pass https://yourdomain.com/;

instead of

proxy_pass http://x_nextcloud_host_IPv4/;

first one is using port 443 (https) and the second one 80 (http).

You also want to add the NGINX server IP to the trusted proxies list of AIO.

Hi, there is an AIO-specific reverse proxy documentation available. See all-in-one/reverse-proxy.md at main · nextcloud/all-in-one · GitHub

You can check my setup for Nextcloud AIO + NGINX Proxy server (PDF contains screenshots of settings).

I hope it helps.