On one of my lxc containers I installed nginx (as usual systemd service) and on docker I have web image which have port 3000 opened.
On vhost side proxy pass is configured like this
But unfortunately nginx shows 502 with error log lines
On any VM there are no problem with this I'm using Proxmox 7.2-7 version
Is there any issues with this type of communication ?
On vhost side proxy pass is configured like this
Code:
server {
listen 80;
listen [::]:80;
server_name example.com;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
location / {
proxy_pass http://127.0.0.1:3000;
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_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
But unfortunately nginx shows 502 with error log lines
Code:
connect() failed (111: Connection refused) while connecting to upstream
On any VM there are no problem with this I'm using Proxmox 7.2-7 version
Is there any issues with this type of communication ?