When searching this forum, stackexchange/overflow, google I can find a lot on how to setup nginx and all when on a same server but hardly when nginx has to act as a reverse proxy to different machines (IP-addresses) in the network.
What I have now:
router (xxx.xxx.xxx.001) ->portforwarding 80/443 (http(s) and 3478/8443 (turn/stun) ->server with several hosts on (xxx.xxx.xxx.003): nextcloud.domain.com, collabora.domain.com or open documentserver with onlyoffice and some other webservices other than nextcloud related.
collabora.comain.com has an entry in the hosts file of the machine. So I figure this will nog jump outside and since the 9980 port for collabora isn’t open and all functions I can conclude that works fine.
because of the other webservices I would like to split these from the server running nextcloud.
then it would look like.
router (xxx.xxx.xxx.001) -> port forwarding 80/443 -> reverse proxy (xxx.xxx.xxx.002) -> several webservers (xxx.xxx.xxx.0xx), the nextcloud machine amongst others…
router (xxx.xxx.xxx.001 -> port forwarding 3478/8443 -> machine with nextcloud.
That would not look to interesting as this seems to work:
server {
listen 443 ssl;
server_name nextcloud.domain.com;
ssl_certificate pathto/cert.cert;
ssl_certificate_key pathto/key.key;
location / {
proxy_buffering off;
proxy_pass_request_headers on;
proxy_set_header Host $host;
proxy_pass_header Server;
proxy_pass https://xxx.xxx.xxx.003:443/;
}
}
but even thoug “talk” still works, collabora nor onlyoffice/opendocumentserver seem to function.
Am I missing something in the setup? what should be the correct nginx reverse proxy settings?
I am aware of x instead of 00x