Xen Orchestra and Nginx Proxy Manager

So i ran into a problem that i dont know if always exited or just started. The issue when i try to upload and ISO file to my Xen Orchestra built from sources i get an error message.

If i do the same but access XO from its ip vs fqdn it works. I posted over on the xcp-ng form Disk import failed | XCP-ng and XO forum and Oliver suggest i increase the max upload size in nginx.

A couple google searches tells me what i should change and the file to make the change… Google Search

Now for my problem. It states to edit the /etc/nginx/nginx.conf that does not exist.

If i type docker exec -it nginx-proxy-manager bash I can enter the nginx docker image and there i can find /etc/nginx/nginx.conf but VIM or Nano do not work there to edit the file.

So do i need to create this file? If i need to change in the docker image how? Am i just looking in the wrong location? I am using the official docker image jc21/nginx-proxy-manager

This is probably due to websockets. Do you have that enabled on NPM?

yes.




My fault. I don’t know what I was thinking. This occurs when the server receives a request that exceeds the configured maximum size limit. Meaning you need to update the client_max_body_size to something larger.

This might help you understand.

  1. Open your NGINX configuration file (nginx.conf) usually located in ‘/etc/nginx/’ or ‘/etc/nginx/sites-available/’.

again there is my problem. I cant find the file to edit…

┌──(dockeradmin😈dockerothings)-[~]
└─$ cd /etc/nginx
cd: no such file or directory: /etc/nginx

If i type docker exec -it nginx-proxy-manager bash I can enter the nginx docker image and there i can find /etc/nginx/nginx.conf but VIM or Nano do not work there to edit the file.

Proxy manager is installed via docker compose from official - Full Setup Instructions | Nginx Proxy Manager

You would put this in the advanced section. If you set it to 0 it will disable it and the error should go away

client_max_body_size 0;

Make sure to restart NPM for the setting to take effect.

1 Like

That did the trick. Just added to advanced tab and it just work. No restart was needed… So question anyone else having this problem. I thought i have uploaded and ISO previously vis fqdn with no issues. Unless i am mistaken and i uploaded them other ways for other reasons…

So i noticed that the ISO must have been uploaded to the proxy manager and then uploaded to XO. As my PC finished sending the file while XO say the transfer was 50% remaining.

Just observation but i guess that is expected…