Access Nextcloud outside my LAN

Hi everyone,

I have the following network configuration:
srv050: reverse-proxy realized with Nginx
srv032: cloud server with NextCloud

The problem is the following: if PC2 connects to srv032 everything work. On the other hand if I try from PC1, which is outside the LAN, I can’t use the service.
My Nginx configuration is the following:

server  {
    listen  80;
    listen  443;
    #listen  443 ssl http2;
    access_log  /var/log/nginx/access_110-cloud.log  main;
    location  / {
        index index.php index.htm index.html;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP  $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass  http://srv032.berna.lan;
        access_log  on;

Any ideas/help would be appreciated :grinning:

Logs please :slight_smile:
I’d like to see what NGINX is doing when you try to access the server externally, however it potentially sounds like a port/firewall issue. I can see 80/443 are open on your cloud, so what does your firewall tell you in addition to NGINX?